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.
| Comment | File | Size | Author |
|---|---|---|---|
| hashtags-7.x-1.2_hyphen_0.patch | 449 bytes | HorsePunchKid |
Comments
Comment #1
Dardh commentedHello,
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.
Comment #2
radamiel commentedfixed in 7.x-1.4 release.. sorry for late feedback.. now #aaa_bbb is valid #_aa, #bb_ invalid