Skip to content

Commit

Permalink
Fix code scanning alert - Inefficient regular expression
Browse files Browse the repository at this point in the history
Fix code scanning alert - Inefficient regular expression
  • Loading branch information
m7medVision authored Feb 27, 2024
2 parents e6d5f0b + e836a72 commit dc05ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testcases/arrays/multidimensional-index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const regex = /console.log\((\s+|)+arr\[3\]\[1\](\s+|)\)/
const regex = /console.log\(\s*arr\[3\]\[1\]\s*\)/
if (regex.test(code)) {
isPass = true
msg = "مبروك، الجواب صحيح"
Expand Down

0 comments on commit dc05ebe

Please sign in to comment.