Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Only \p operator is OK, and back to specified space instead of whites…
Browse files Browse the repository at this point in the history
…pace
  • Loading branch information
HungYuHei committed Feb 4, 2013
1 parent 9f4dda5 commit 490e18b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/soulmate/helpers.rb
Expand Up @@ -14,7 +14,7 @@ def prefixes_for_phrase(phrase)

def normalize(str)
# Letter, number and unicode words (Chinese, Japanese, etc.)
str.downcase.gsub(/[^a-z0-9\s\p{word}]/i, '').strip
str.downcase.gsub(/[^\p{Word}\ ]/i, '').strip
end

end
Expand Down

0 comments on commit 490e18b

Please sign in to comment.