[ruby-core:68859] [Ruby trunk - Feature #10152] String#strip doesn't remove non-breaking space

From: ojab@...
Date: 2015-04-12 19:36:44 UTC
List: ruby-core #68859
Issue #10152 has been updated by ojab ojab.


There is an issue not only for non-breaking space, but also for other unico=
de spaces, see #7845. For example (excerpt from rails String#squish testcas=
e) `%{\u205f\u3000 A string surrounded by various unicode spaces, with tabs=
(\t\t), newlines(\n\n), unicode nextlines(\u0085\u0085) and many spaces(  )=
. \u00a0\u2007}`.
So I think that this ticket should be closed in favour of #7845.

----------------------------------------
Feature #10152: String#strip doesn't remove non-breaking space
https://bugs.ruby-lang.org/issues/10152#change-52127

* Author: Adrian Mazur
* Status: Open
* Priority: Normal
* Assignee:=20
----------------------------------------
String#strip doesn't remove non-breaking space.

~~~ruby
2.1.2 :001 > "\u00A0".strip
 =3D> "=C2=A0"=20
~~~



--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next