From 06e9437b9db0e331e44683c63e906312fbab1806 Mon Sep 17 00:00:00 2001 From: Mohammed <88824957+m7medVision@users.noreply.github.com> Date: Wed, 28 Feb 2024 00:25:31 +0400 Subject: [PATCH] testcase regex issue! Fixes #61 --- testcases/variables/uninitialized-variables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/variables/uninitialized-variables.js b/testcases/variables/uninitialized-variables.js index fcdb980..b7ad3bb 100644 --- a/testcases/variables/uninitialized-variables.js +++ b/testcases/variables/uninitialized-variables.js @@ -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 = "لم تقم بتغير قيمة المتغير غير المهيأة"