We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ae0a91 commit fbfe4a1Copy full SHA for fbfe4a1
src/asar/libstr.h
@@ -540,15 +540,23 @@ inline char * strqrchr(const char * str, char key)
540
const char * ret= nullptr;
541
while (*str)
542
{
543
- if (*str=='"')
+ if (*str=='"' || *str=='\'')
544
545
+ char token = *str;
546
+
547
str++;
- while (*str!='"')
548
549
+ // Special case hack for '''
550
+ if (str[0] == '\'' && str[1] == '\'') { str += 2; }
551
+ else
552
- if (!*str) return nullptr;
553
+ while (*str != token)
554
+ {
555
+ if (!*str) return nullptr;
556
+ str++;
557
+ }
558
559
}
- str++;
560
561
else
562
0 commit comments