regex issues with 'q' flag in fn:tokenize
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Committed
|
Undecided
|
Paul J. Lucas |
Bug Description
From http://
"q: if present, all characters in the regular expression are treated as representing themselves, not as metacharacters. In effect, every character that would normally have a special meaning in a regular expression is implicitly escaped by preceding it with a backslash.
Furthermore, when this flag is present, the characters $ and \ have no special significance when used in the replacement string supplied to the fn:replace function.
This flag can be used in conjunction with the i flag. If it is used together with the m, s, or x flag, that flag has no effect."
The test-cases "fn-tokenize-31" and "fn-tokenize-33" from "fn-tokenize" test-set are failing: please see attached log.
Related branches
- Matthias Brantner: Approve
- Paul J. Lucas: Approve
-
Diff: 118 lines (+10/-17)5 files modifiedChangeLog (+1/-0)
modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq (+2/-3)
modules/org/expath/ns/file.xq (+1/-1)
src/runtime/strings/strings_impl.cpp (+6/-11)
test/fots/CMakeLists.txt (+0/-2)
Changed in zorba: | |
status: | New → Fix Committed |