Project

Profile

Help

Bug #3910

closed

Error using fn:replace() with "q" flag when search string contains "-" character

Added by Debbie Lockett over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
2018-09-19
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
1.0, Trunk
Fix Committed on JS Branch:
1.0, Trunk
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

In the browser, Saxon-JS 1.1.0 crashes with "Uncaught SyntaxError" when fn:replace() is used (at run-time) with the "q" flag, and the replacement string contains the "-" character.

For example, replace('Saxon-JS', '-', '*', 'q') fails at run-time. (Note that to force this to be evaluated at run-time rather than compile-time, you should supply some args as parameters.)


Related issues

Related to SaxonJS - Bug #3790: Saxon-JS documentation app search problemsClosedDebbie Lockett2018-05-17

Actions
Related to SaxonJS - Bug #3833: Problems using fn:replace() with special characters in replacement stringClosedDebbie Lockett2018-07-04

Actions

Please register to edit this issue

Also available in: Atom PDF Tracking page