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 a80860c commit 4991301Copy full SHA for 4991301
javascript/ql/lib/semmle/javascript/security/UselessUseOfCat.qll
@@ -307,7 +307,7 @@ module PrettyPrintCatCall {
307
then result = str.suffix(5)
308
else
309
// prettify `${newpath}` to just newpath
310
- if str.matches("`${%") and str.matches("}`%") and not str.suffix(3).matches("%{%")
+ if str.matches("`${%") and str.matches("%}`") and not str.suffix(3).matches("%{%")
311
then result = str.prefix(str.length() - 2).suffix(3)
312
else result = str
313
}
0 commit comments