XHanch Studio Log in | Register | Cart

Forum

Notifications
Clear all

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

1 Posts
1 Users
0 Likes
2,271 Views
 sfjn
(@sfjn)
Posts: 1
New Member
Topic starter
 

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)

 
Posted : 17/01/2013 5:16 am
Share:

× Close Menu