diff options
| author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2023-05-21 17:33:17 +0200 |
|---|---|---|
| committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2023-05-23 00:03:37 +0200 |
| commit | 313bb32364e106e111b8518b786c4364770aaaac (patch) | |
| tree | 0a8752cba479e1876c06b829fdf09ca53013db3e /src/tools/uic/cpp/cppwriteinitialization.cpp | |
| parent | c5221f6be00c16187e0abf008b33c230fea56c29 (diff) | |
QRegularExpression: match newlines when converting wildcards
A * or a ? in a wildcard pattern is allowed to match any character,
including newlines. When converting a wildcard pattern to a PCRE,
* and ? were converted to ., which by default does _not_ match over
newlines (/s is necessary).
There isn't a metacharacter that matches everything, so either we modify
the returned pattern to enable dot-matches-all (for instance, by
wrapping the returned expression in (?s:...)), or use a character class
that includes everything. Picking this last approach for simplicity.
Change-Id: I86703f654e3414783427c4c8e0bb018885b42e54
Fixes: QTBUG-113676
Pick-to: 6.5
Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
0 files changed, 0 insertions, 0 deletions
