Skip to content

Commit 4991301

Browse files
committed
JS: Fix incorrect fix.
1 parent a80860c commit 4991301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/lib/semmle/javascript/security/UselessUseOfCat.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ module PrettyPrintCatCall {
307307
then result = str.suffix(5)
308308
else
309309
// prettify `${newpath}` to just newpath
310-
if str.matches("`${%") and str.matches("}`%") and not str.suffix(3).matches("%{%")
310+
if str.matches("`${%") and str.matches("%}`") and not str.suffix(3).matches("%{%")
311311
then result = str.prefix(str.length() - 2).suffix(3)
312312
else result = str
313313
}

0 commit comments

Comments
 (0)