Closed rhapsodyn closed 11 years ago
This issue was in older version gem. The \w behaves only with ascii character in ruby 1.9 against all unicode character in ruby 1.8. Now we should use the pattern : [\w\P{ASCII}]
In newer version gem in mdline.rb
return :olist if self =~ /^([ ]{0,3}|\t)\d+\.\s+.*/
puts "1. 测试" =~ /^([ ]{0,3}|\t)\d+\.\s+.*/
puts "1. test" =~ /^([ ]{0,3}|\t)\d+\.\s+.*/
These tests work.
Updated to the latest version, works like a charm
The regex
/^[ ]{0,1}\d+\..*\w+/
i find intype_detection.rb:57
not working well for UTF-8.Here's the test:
outputs
nil
and0