aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorAntoine Lyset <antoinelyset+github@gmail.com>2013-01-22 22:44:53 +0100
committerAntoine Lyset <antoinelyset+github@gmail.com>2013-01-22 22:46:11 +0100
commitb5245da94a7c7667b57bb2184fa9aa7beb998da6 (patch)
treec0753bc982839bebe38e19afdede45f89051fdff /guides
parente35d0a6112a73a05fc886b49b6df6ef26d2e3368 (diff)
downloadrails-b5245da94a7c7667b57bb2184fa9aa7beb998da6.tar.gz
rails-b5245da94a7c7667b57bb2184fa9aa7beb998da6.tar.bz2
rails-b5245da94a7c7667b57bb2184fa9aa7beb998da6.zip
Improve String#squish whitespaces matching
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_support_core_extensions.md2
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`