Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Invalid
-
Affects Version/s: 5.15.2, 6.2.1
-
Component/s: QML: Declarative and Javascript Engine
-
Labels:
-
Platform/s:
Description
QML JS RegExp with lookbehinds (positive and negative) doesn't work as expected.
example:
// positive lookahead test const plaMatch = /foo(?=bar)/g.exec('foobar foobaz'); console.assert(plaMatch != null, "Positive lookahead failed!") // PASS // negative lookahead test const nlaMatch = /foo(?!bar)/g.exec('foobar foobaz'); console.assert(nlaMatch != null, "Negative lookahead failed!") // PASS // positive lookbehind test const plbMatch = /(?<=foo)bar/g.exec('foobar fuubar'); console.assert(plbMatch != null, "Positive lookbehind failed!") // FAILED! // negative lookbehind test const nlbMatch = /(?<!foo)bar/g.exec('foobar fuubar'); console.assert(nlbMatch != null, "Negative lookbehind failed!") // FAILED!
Attachments
Issue Links
- resulted in
-
QTBUG-98638 Implement LookBehind support in QML
-
- Open
-