Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only \p operator is OK, and back to specified space instead of whites…

…pace
  • Loading branch information...
commit 490e18b528421138cc487ef0715d02d90fb8bc7c 1 parent 9f4dda5
@HungYuHei HungYuHei authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/soulmate/helpers.rb
View
2  lib/soulmate/helpers.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.