Commit 4e8a9121 authored by Antonio Rojas's avatar Antonio Rojas
Browse files

Fix underlining files with non-ascii names

Expand the regexp to match all unicode alphanumeric characters

BUG: 424404
FIXED-IN: 20.08
parent b48e0f3e
......@@ -63,7 +63,7 @@ FileFilter::FileFilter(Session *session) :
*/
QLatin1String("'[^']+'") // Matches everything between single quotes.
+ QStringLiteral(R"RX(|"[^"]+")RX") // Matches everything inside double quotes
+ QStringLiteral(R"RX(|[\w%1]+)RX").arg(wordCharacters) // matches a contiguous line of alphanumeric characters plus some special ones defined in the profile.
+ QStringLiteral(R"RX(|[\p{L}\w%1]+)RX").arg(wordCharacters) // matches a contiguous line of alphanumeric characters plus some special ones defined in the profile.
,
QRegularExpression::DontCaptureOption);
setRegExp(re);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment