-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
48 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import IconBrandTelegram from "https://deno.land/x/tabler_icons_tsx@0.0.5/tsx/brand-telegram.tsx"; | ||
import IconBrandGithub from "https://deno.land/x/tabler_icons_tsx@0.0.5/tsx/brand-github.tsx"; | ||
|
||
export default function AboutIcons() { | ||
return ( | ||
<div class="flex gap-2 justify-center"> | ||
<a | ||
class="hover:opacity-75" | ||
target="_blank" | ||
title="تلغرام منصه نخله" | ||
href="https://t.me/NakhlahJS" | ||
> | ||
<IconBrandTelegram /> | ||
</a> | ||
<a | ||
class="hover:opacity-75" | ||
target="_blank" | ||
title="سورس منصه نخله" | ||
href="https://github.com/TeaByte/NakhlahJS" | ||
> | ||
<IconBrandGithub /> | ||
</a> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
// check if code contain any var declaration | ||
const regex = /var\s+(\w+)\s*(?:=.*)?\s*;\s*/; | ||
const regex = /var\s+(\w+)\s*(?:=\s*[^;]+)?\s*;\s*/; | ||
if (!regex.test(code)) { | ||
isPass = false; | ||
msg = "لم يتم إنشاء متغير وتعيين قيمة له"; | ||
} else { | ||
const matches = code.match(regex); | ||
const varName = matches[1]; | ||
if (code.includes(varName + " = ")) { | ||
const assignRegex = new RegExp(varName + "\\s*=\\s*[^;]+;"); | ||
|
||
if (assignRegex.test(code)) { | ||
isPass = true; | ||
msg = "اجابة صحيحة"; | ||
} else { | ||
isPass = false; | ||
msg = "لم يتم إنشاء متغير وتعيين قيمة له"; | ||
} | ||
} | ||
} |