Permalink
Browse files

fix regex generation for currencies

  • Loading branch information...
1 parent 48683a9 commit 9f565182de29897e863730d6dc933d949fb9ec13 @rsl committed Mar 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/stringex/localization.rb
@@ -87,7 +87,7 @@ def reset!
end
def currencies_supported_regex
- Regexp.new DefaultConversions::CURRENCIES_SUPPORTED.join('|')
+ Regexp.new DefaultConversions::CURRENCIES_SUPPORTED.map{|x| Regexp.escape(x)}.join('|')
end
private

0 comments on commit 9f56518

Please sign in to comment.