From b5245da94a7c7667b57bb2184fa9aa7beb998da6 Mon Sep 17 00:00:00 2001 From: Antoine Lyset Date: Tue, 22 Jan 2013 22:44:53 +0100 Subject: Improve String#squish whitespaces matching --- guides/source/active_support_core_extensions.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'guides') 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` -- cgit v1.2.3