mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
fixes #144, remove zwnj from tag names
This commit is contained in:
parent
282aa5f6c2
commit
c885d1dd6b
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ defmodule Philomena.Tags.Tag do
|
|||
# with ascii quotes, trim space from end
|
||||
name
|
||||
|> String.downcase()
|
||||
|> String.replace(~r/[[:space:]]+/, " ")
|
||||
|> String.replace(~r/[[:space:]|\x{200c}]+/u, " ")
|
||||
|> String.replace(~r/[\x{00b4}\x{2018}\x{2019}\x{201a}\x{201b}\x{2032}]/u, "'")
|
||||
|> String.replace(~r/[\x{201c}\x{201d}\x{201e}\x{201f}\x{2033}]/u, "\"")
|
||||
|> String.trim()
|
||||
|
|
Loading…
Reference in a new issue