Permalink
Browse files

Merge pull request #38 from kscanne/add_latin_characters

Add latin characters to regex for autolinking hashtags
  • Loading branch information...
2 parents dc7509f + f801ecd commit e12872848b5c6a12cf3bd663de2a8f0f0a0de31b @keitaf keitaf committed Feb 10, 2012
Showing with 13 additions and 1 deletion.
  1. +13 −1 lib/regex.rb
View
14 lib/regex.rb
@@ -65,7 +65,19 @@ def self.regex_range(from, to = nil) # :nodoc:
regex_range(0xc0, 0xd6),
regex_range(0xd8, 0xf6),
regex_range(0xf8, 0xff),
- regex_range(0x015f)
+ regex_range(0x0100, 0x024f),
+ regex_range(0x0253, 0x0254),
+ regex_range(0x0256, 0x0257),
+ regex_range(0x0259),
+ regex_range(0x025b),
+ regex_range(0x0263),
+ regex_range(0x0268),
+ regex_range(0x026f),
+ regex_range(0x0272),
+ regex_range(0x0289),
+ regex_range(0x028b),
+ regex_range(0x02bb),
+ regex_range(0x1e00, 0x1eff)
].join('').freeze
NON_LATIN_HASHTAG_CHARS = [

0 comments on commit e128728

Please sign in to comment.