Spurious "unmatched ')'" error in regular expression
Saxon-JS reports "unmatched ')'" in a regular expression, caused by failing to ignore ')' characters that appear within a character class (that is, within square brackets).
Shows up in test case analyze-string-097.
When we fix this the test shows a further error, caused by incorrect treatment of escaped hyphens within square brackets: the backslash is being incorrectly removed.
Updated by Michael Kay over 6 years ago
- Priority changed from Low to Normal
- Applies to JS Branch 0.9, 1.0, Trunk added
- Fix Committed on JS Branch Trunk added
The same test also showed up one further errors: "$" outside square brackets was (for some unfathomable reason) being replaced by "$".
Changes made on the 2.0 branch and the test case is now working.
Please register to edit this issue