no URL recognition due to reg exp [Xhanch - My Twitter - 2.7.5]

Started by sfjn, January 16, 2013, 10:16:34 PM

previous topic - next topic
Go Down

sfjn

Hi, thanks for the great plugin!

We are using it on our site, but since the tweets are all in Japanese, the URLs without a space in front of them but a japanese character don't get recognized as such and this do not become clickable.

I can't fix it because I don't know reg. expressions; I suspect the bug is somewhere in here:

[xhanch-my-twitter/inc/common.php , function xmt_make_clickable]
preg_match_all('#(?<=[\s>])(\()?([\w]+?://(?:[\w\\x80-\\xff\#$%&~/\-=?@\[\](+]|[.,;:](?![\s<])|(?(1)\)(?![\s<])|\)))+)


Current situation:

2æÅ"ˆ9æâ€"¥åŽŸå®¿ã§éâ€"‹å‚¬ã•ã‚Å'ã‚‹ã‚»ãÆ'ŸãÆ'•ã‚¡ã‚¤ãÆ'ŠãÆ'«ã«TexaGPSで出場ãâ€"まãâ,,¢Ã£â,¬â€š http://t.co/LHoPc6Cx -> becomes clickable (because it has a small space in front)
イãÆ'â,,¢Ã£Æ'³ãÆ'ˆãÆ'šãÆ'¼ã‚¸ã¯ã“ちら!http://t.co/PUAozVeu ãÅ"ひご参加くださいãâ,¬â€š -> doesnt (prev. character is exclamation mark)

Go Up