Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix regex generation for currencies

  • Loading branch information...
commit 9f565182de29897e863730d6dc933d949fb9ec13 1 parent 48683a9
@rsl authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/stringex/localization.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.