Skip to content
Extraits de code Groupes Projets
Valider 5c9aa2b7 rédigé par Mingye Wang's avatar Mingye Wang Validation de Eugen
Parcourir les fichiers

Fix mangling of ##tag matches (#2194) (#2247)

This commit fixes hashtag_html so it correctly handles matches with multiple hash-signs.

Bug located by @over9001, initial fix suggested by @nightpool.
parent 78af88e1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -109,7 +109,7 @@ class Formatter
end
def hashtag_html(match)
prefix, affix = match.split('#')
prefix, _, affix = match.rpartition('#')
"#{prefix}<a href=\"#{tag_url(affix.downcase)}\" class=\"mention hashtag\">#<span>#{affix}</span></a>"
end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter