Bracket doesn't support Chinese
-
I tried to use bracket-to-link for Chinese doc and I failed because Chinese is not supported. I read the code and found the reason.
In file addon-wikitext.php line 41, the code is:
$pattern = ‘|\[\[([a-zA-Z\s0-9\(\)\|]+?)\]\]|’;
To support Chinese, the code must be changed to:
$pattern = ‘/\\[\\[(.+?)\\]\\]/’;
Then the bracket-to-link work for Chinese doc.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Bracket doesn't support Chinese’ is closed to new replies.