Small change makes # searchen work with scandinavian characters etc.
-
I noticed that the hashtags did’nt work with special swedish characters in UTF-8. So I changed something in model/twitter-search.php to make it work.
line 74 was:
$content = preg_replace( '/(^|\s)#(\w*[a-z_]+\w*)/i', '\1<a href="https://search.twitter.com/search?q=%23\2">#\2</a>', $content );
changed to:
$content = preg_replace( '/(^|\s)#(\w*[a-z_üà-??-??-?]+\w*)/i', '\1<a href="https://twitter.com/search?q=%23\2">#\2</a>', $content );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Small change makes # searchen work with scandinavian characters etc.’ is closed to new replies.