RESOLVED FIXED 20266
RegExp \s does not match NBSP
https://bugs.webkit.org/show_bug.cgi?id=20266
Summary RegExp \s does not match NBSP
Kenny Chan
Reported 2008-08-03 04:16:02 PDT
The \s pattern in regular expression does not match the non-breaking space character (U+00A0). According to the ECMA-262 standard (7.2 Whitespace & 15.10.2.12 CharacterClassEscape) the NBSP should be accepted as a member of \s class. Step to reproduce: Run the script /\s/.test("\u00A0"); Expected result: return true Actual result: return false
Attachments
Mark Rowe (bdash)
Comment 1 2008-08-03 20:05:28 PDT
Alexey Proskuryakov
Comment 2 2008-08-11 00:04:14 PDT
I do not know if this is intentional, but we match IE here.
Cameron Zwarich (cpst)
Comment 3 2008-09-18 04:02:17 PDT
This was fixed by the introduction of WREC on 32-bit x86 (or at least Mac and Windows), and by r36612 on other platforms.
Note You need to log in before you can comment on or make changes to this bug.