lib/stringex/localization/conversion_expressions.rb in stringex-2.1.0 vs lib/stringex/localization/conversion_expressions.rb in stringex-2.1.1
- old
+ new
@@ -1,10 +1,10 @@
# encoding: UTF-8
module Stringex
module Localization
module ConversionExpressions
- ABBREVIATION = /(\s|^)([[:alpha:]](\.[[:alpha:]])+(\.?)[[:alpha:]]*(\s|$))/
+ ABBREVIATION = /(\s|\(|^)([[:alpha:]](\.[[:alpha:]])+(\.?)[[:alpha:]]*(\s|\)|$))/
ACCENTED_HTML_ENTITY = /&([A-Za-z])(grave|acute|circ|tilde|uml|ring|cedil|slash);/
APOSTROPHE = /(^|[[:alpha:]])'|`([[:alpha:]]|$)/