[Plugin: Twitter Tools] incorrectly linked international hash codes
-
The current version of Twitter tools incorrectly links hash codes that contain international characters (üé?ê, for example).
For example, if a tweet contains “#k?ln”, the following will be saved by twitter tools:
#<a href="https://search.twitter.com/search?q=%23k" class="aktt_hashtag">k</a>?ln
which is obviously incorrect.
This is happening because the current hash code regex is:
define('AKTT_REGEX', '/\ #([a-zA-Z0-9_]{1,15})/');
By changing it to the following:
define('AKTT_REGEX', '/\ #([\w]{1,15})/u');
it would pick up on other word characters.
Cheers,
Edward
- The topic ‘[Plugin: Twitter Tools] incorrectly linked international hash codes’ is closed to new replies.