Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6
-
None
-
-
313bb3236 (dev)
Description
As can be seen in https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/text/qregularexpression.cpp?id=393e496385e4de8522b8ffff0e539f9150238c07#n1937, a dot is used if the NonPathWildcardConversion option is enabled and not used otherwise. Therefore, only in case of non-path wildcard conversion, matching newlines requires creating a QRegularExpression with the DotMatchesEverythingOption pattern option. This is an unfortunate inconsistency. Can be fixed by e.g. replacing
u".*", u"."
with
u"[\\d\\D]*", u"[\\d\\D]"
Attachments
For Gerrit Dashboard: QTBUG-113676 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
478841,2 | QRegularExpression: match newlines when converting wildcards | dev | qt/qtbase | Status: MERGED | +2 | 0 |
479124,1 | QRegularExpression: match newlines when converting wildcards | 6.5 | qt/qtbase | Status: ABANDONED | 0 | 0 |