lib/stringex/localization/conversion_expressions.rb in stringex-2.5.2 vs lib/stringex/localization/conversion_expressions.rb in stringex-2.6.0

- old
+ new

@@ -101,10 +101,12 @@ /(“|”|\302\223|\302\224|\303\222|\303\223)/ => '"', /(‘|’|\302\221|\302\222|\303\225)/ => "'", /…/ => "...", } + UNREADABLE_CONTROL_CHARACTERS = /[[:cntrl:]]/ + # Ordered by denominator then numerator of the value VULGAR_FRACTIONS = { :half => /(½|½|½)/, :one_third => /(⅓|⅓)/, :two_thirds => /(⅔|⅔)/, @@ -136,9 +138,10 @@ currencies_simple currencies_complex html_entities html_tag smart_punctuation + unreadable_control_characters vulgar_fractions whitespace }.each do |conversion_type| define_method conversion_type do const_get conversion_type.upcase