Don't linkify any @123 EID text that is followed by an x

* This isn't something we generally want to support (@123 should be a separate
  word) and it can come up with shader names like `shader@0x12345` as well as
  with icon@2x.png
This commit is contained in:
baldurk
2021-02-08 12:27:02 +00:00
parent 15cbeef054
commit 4c3cf74f18
+2 -2
View File
@@ -478,8 +478,8 @@ void RichResourceTextInitialise(QVariant &var, ICaptureContext *ctx)
int end = match.capturedEnd(4);
// skip @2x since it appears in high-DPI icons
if(eid == 2 && end < text.length() && text[end] == QLatin1Char('x'))
// skip @..x since e.g. @2x appears in high-DPI icons and @0x08732 can appear in shader name
if(end < text.length() && text[end] == QLatin1Char('x'))
{
match = resRE.match(text, end);
continue;