Permalink
Browse files

widening the UTF allowed chars range to include almost all Unicode ch…

…aracters
  • Loading branch information...
1 parent 9e19f3d commit 90b1de0c5f9f888aea2a209af79f813cfce9d873 Mike Połtyn committed Aug 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/wikilinks.rb
@@ -144,7 +144,7 @@
# we do another regexp parse inside anyway, above one is only to exclude messages ending with "#"
# /\[\[([ %!\"$&'()*,\-.\/0-9:;=?@A-Z\\^_\`a-z~\x80-\xFF]+)(\||\]\])/n # regex for valid MediaWiki Title in a interwiki link
post :links do
- wikilinks = @message.body.scan(/\[\[([ %!\"$&'()*,\-.\/0-9:;=?@A-Z\\^_\`a-z~\u0080-\u00FF]+)(\||\]\])/u)
+ wikilinks = @message.body.scan(/\[\[([ %!\"$&'()*,\-.\/0-9:;=?@A-Z\\^_\`a-z~\u0080-\uFFFF]+)(\||\]\])/u)
reallinks = []
wikilinks.each do |wikilink|

0 comments on commit 90b1de0

Please sign in to comment.