mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +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 =
|
||||
tags
|
||||
|> Enum.filter(&String.starts_with?(&1, "-"))
|
||||
|> Enum.map(&String.slice(&1, 1..-1))
|
||||
|> Enum.map(&String.replace_leading(&1, "-", ""))
|
||||
|
||||
added_tags =
|
||||
Tag
|
||||
|
|
Loading…
Reference in a new issue