From c885d1dd6b05496a851c060ab3dfa28118ec2860 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Tue, 16 Jun 2020 12:47:18 -0400 Subject: [PATCH] fixes #144, remove zwnj from tag names --- lib/philomena/tags/tag.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena/tags/tag.ex b/lib/philomena/tags/tag.ex index eec67df4..d353d635 100644 --- a/lib/philomena/tags/tag.ex +++ b/lib/philomena/tags/tag.ex @@ -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()