Skip to content

Commit

Permalink
unicode flag for 1.9 Regexp is being ignored, so let's not set it.
Browse files Browse the repository at this point in the history
  • Loading branch information
pat committed Aug 7, 2011
1 parent 45291aa commit 12d4452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thinking_sphinx/search.rb
Expand Up @@ -612,7 +612,7 @@ def star_query(query)
end

if Regexp.instance_methods.include?(:encoding)
DefaultStarToken = Regexp.new('\p{Word}+', nil, 'u')
DefaultStarToken = Regexp.new('\p{Word}+')
else
DefaultStarToken = Regexp.new('\w+', nil, 'u')
end
Expand Down

0 comments on commit 12d4452

Please sign in to comment.