mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
Fix invalid backwards range usage with String.slice
This commit is contained in:
parent
6bde65abd1
commit
7667aec145
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ defmodule PhilomenaWeb.Admin.Batch.TagController do
|
||||||
removed_tag_names =
|
removed_tag_names =
|
||||||
tags
|
tags
|
||||||
|> Enum.filter(&String.starts_with?(&1, "-"))
|
|> Enum.filter(&String.starts_with?(&1, "-"))
|
||||||
|> Enum.map(&String.slice(&1, 1..-1))
|
|> Enum.map(&String.replace_leading(&1, "-", ""))
|
||||||
|
|
||||||
added_tags =
|
added_tags =
|
||||||
Tag
|
Tag
|
||||||
|
|
Loading…
Reference in a new issue