Project

Profile

Help

Bug #4913

closed

Documentation/code discrepancy in regex flag for using the JavaScript RE engine

Added by Norm Tovey-Walsh almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2021-02-18
Due date:
% Done:

100%

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

Description

In https://saxonica.plan.io/boards/5/topics/8129?pn=1, Martin Honnen writes:

In https://www.saxonica.com/saxon-js/documentation/index.html#!conformance/regex I find the statement:

Saxon-JS allows the flags argument to be suffixed with the string ";j". If this option is present then the JavaScript regular expression engine is used directly, which means that the JavaScript rules rather than the XPath rules apply

However I get an error trying to use ;j as a flag. What seems to not raise an error is simply the suffix j as in e.g. analyze-string(., '\bcan\b', 'ij')/fn:match => count().

Is the documentation wrong or the implementation not doing what the documentation says?

Please register to edit this issue

Also available in: Atom PDF Tracking page