diff options
author | Xavier Noria <fxn@hashref.com> | 2013-01-28 13:24:56 -0800 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2013-01-28 13:24:56 -0800 |
commit | 30034dfbc4beda97fb182fa9bda317a7c3b6615d (patch) | |
tree | fc91a1924869c78c1b0f717e384872aaac4ca914 /guides | |
parent | 764397f17d4140232c1aa62bc593b3e5f25485e7 (diff) | |
parent | b5245da94a7c7667b57bb2184fa9aa7beb998da6 (diff) | |
download | rails-30034dfbc4beda97fb182fa9bda317a7c3b6615d.tar.gz rails-30034dfbc4beda97fb182fa9bda317a7c3b6615d.tar.bz2 rails-30034dfbc4beda97fb182fa9bda317a7c3b6615d.zip |
Merge pull request #8830 from antoinelyset/master
Improve String#squish whitespaces matching
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_support_core_extensions.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md index 3c1bb0f132..f02b377832 100644 --- a/guides/source/active_support_core_extensions.md +++ b/guides/source/active_support_core_extensions.md @@ -1233,6 +1233,8 @@ The method `squish` strips leading and trailing whitespace, and substitutes runs There's also the destructive version `String#squish!`. +Note that it handles both ASCII and Unicode whitespace like mongolian vowel separator (U+180E). + NOTE: Defined in `active_support/core_ext/string/filters.rb`. ### `truncate` |