Skip to content

Commit

Permalink
Fix regex issue in testcases
Browse files Browse the repository at this point in the history
Fix regex issue in testcases
  • Loading branch information
m7medVision authored Feb 27, 2024
2 parents 318a61e + 06e9437 commit 09a463d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testcases/variables/uninitialized-variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if (!regex.test(code)) {
isPass = false;
msg = "ما حد طلب منك تعريف أكثر من متغير غير مهيأة "
} else {
regex = /\w+\s+=\s+("|'|`)عربي("|'|`)/
regex = /\w+(\s+|)=(\s+|)("|'|`)عربي("|'|`)/
if (!regex.test(code)) {
isPass = false;
msg = "لم تقم بتغير قيمة المتغير غير المهيأة"
Expand Down

0 comments on commit 09a463d

Please sign in to comment.