Some other characters beyond /[a-z][0-9]_/i should also be considered, but hyphens are, for me, the priority. The original module that did this (here) also converted tags to a canonical form, stripping out hyphens, underscores, and periods. This patch doesn't do that, and it seems like questionable behavior.

CommentFileSizeAuthor
hashtags-7.x-1.2_hyphen_0.patch449 bytesHorsePunchKid

Comments

Dardh’s picture

Hello,
I changed the pattern to make it UTF-8 friendly :
$pattern = "/#[\w-_]+/u"
It also solved my accent parsing problem.
Hope it will be helpfull.

radamiel’s picture

Status: Needs review » Fixed

fixed in 7.x-1.4 release.. sorry for late feedback.. now #aaa_bbb is valid #_aa, #bb_ invalid

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.