Skip to content

[Octave Backend] Port QRegExp to QRegularExpression

Ahmad Samir requested to merge (removed):l-octave into master

Port QRegExp::exactMatch() by making the QRegularExpression pattern anchored.

QRE::anchoredPattern() was introduced with Qt 5.12 and cantor has min. required Qt version set at 5.8; thus anchor the pattern with ^ and $.

Also since we're doing nothing with the capture group, make it non-capturing (?:).

All unit tests pass, except for testlua (fails on master too), and testworksheet which hangs (on master too).

Edited by Ahmad Samir

Merge request reports