In twitter_pull.module function twitter_pull_add_links($text) I replaced the hashtag pattern (the last one) with the following:

  $pattern = '/[#]+([\pL\pN]+)/u';

See http://ca.php.net/manual/en/regexp.reference.unicode.php for more info. Basically, a hashtag is comprised of unicode letters and numbers. That includes é, ç, etc. Not including dashes since they're not linked by Twitter.

Comments

teelmo’s picture

StatusFileSize
new13.92 KB

Yeah, this is a problem here in Finland also while we use scandic letters (Å, Ö and Ä) quite often.

See the attached screenshot. The whole hashtag "#keihäs" should be linked while now the anchor include only "#keih".

Ruedische’s picture

Patch added.

Ruedische’s picture

Issue summary: View changes
StatusFileSize
new977 bytes