Bug 15103 - regexp removes chars when an escape sequence is unknown.
Summary: regexp removes chars when an escape sequence is unknown.
Status: VERIFIED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-28 13:10 PDT by Derk-Jan Hartman
Modified: 2007-08-28 13:37 PDT (History)
0 users

See Also:


Attachments
testcase of vertical tab matching (288 bytes, text/html)
2007-08-28 13:12 PDT, Derk-Jan Hartman
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Derk-Jan Hartman 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
Comment 1 Derk-Jan Hartman 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.
Comment 2 Derk-Jan Hartman 2007-08-28 13:34:30 PDT
Seems fixed in a nightly build. Original report was with Safari 3.0.2