WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
VERIFIED WORKSFORME
15103
regexp removes chars when an escape sequence is unknown.
https://bugs.webkit.org/show_bug.cgi?id=15103
Summary
regexp removes chars when an escape sequence is unknown.
Derk-Jan Hartman
Reported
2007-08-28 13:10:32 PDT
I ran into a case where all v's were removed from my text. I went trough all the scripts and found that one was doing a .replace(/[\t\v\u00a0\u2028\u2029]+/g, ' '). Because Safari RegExp apparently doesn't know the \v (vertical tab), it instead opted to replace all my v's
Attachments
testcase of vertical tab matching
(288 bytes, text/html)
2007-08-28 13:12 PDT
,
Derk-Jan Hartman
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Derk-Jan Hartman
Comment 1
2007-08-28 13:12:30 PDT
Created
attachment 16146
[details]
testcase of vertical tab matching This test case, shows that when replacing vertical tab \v, matches normal v.
Derk-Jan Hartman
Comment 2
2007-08-28 13:34:30 PDT
Seems fixed in a nightly build. Original report was with Safari 3.0.2
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug