Summary: | String.replace() method not working when regex pattern contains {n, m} | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Stuart Morgan <stuartmorgan> | ||||||
Component: | JavaScriptCore | Assignee: | Maciej Stachowiak <mjs> | ||||||
Status: | VERIFIED FIXED | ||||||||
Severity: | Normal | ||||||||
Priority: | P2 | ||||||||
Version: | 412 | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.4 | ||||||||
Attachments: |
|
Description
Stuart Morgan
2005-06-11 17:44:27 PDT
Created attachment 2257 [details]
Testcase
Created attachment 2496 [details]
Fix bug
There is a problem with the length calculation in pcre_compile which makes some
ranges not work when using UTF-16. This patch solves the problem similarly to
how never versions of pcre solves it with UTF-8.
Our PCRE is based on version 3.9, and the latest is 5.0. Should we also merge in a newer PCRE? Comment on attachment 2496 [details]
Fix bug
r=me
|