Fix #470
This commit is contained in:
@@ -383,7 +383,7 @@
|
||||
"this_side_classquiz": "في هذا الجانب يمكنك استيراد الاختبارات التي تم تصديرها من ClassQuiz.",
|
||||
"a_kahoot_quiz": "مسابقة- كاهوت!",
|
||||
"side_import_kahoot": "في هذا الجانب يمكنك استيراد الاختبارات الموجودة على Kahoot!.",
|
||||
"url_should_look_like_this": "يجب أن يبدو عنوان URL بهذا الشكل: https://create.kahoot.it/details/...",
|
||||
"url_should_look_like_this": "يجب أن يبدو عنوان URL بهذا الشكل: https://create.´/details/...",
|
||||
"need_help": "تحتاج مساعدة؟",
|
||||
"upload_file_ending": "قم بتحميل الملف الذي ينتهي بـ .cqa أو .xlsx"
|
||||
},
|
||||
|
||||
@@ -15,7 +15,7 @@ SPDX-License-Identifier: MPL-2.0
|
||||
const { t } = getLocalization();
|
||||
let url_input = $state('');
|
||||
let file_input: File[] = $state();
|
||||
let kahoot_regex = /^https:\/\/create\.kahoot\.it\/details\/([a-zA-Z-\d]{36})\/?$/;
|
||||
let kahoot_regex = /^https:\/\/create\.kahoot\.it\/details\/.*\/?([a-zA-Z-\d]{36})\/?$/;
|
||||
|
||||
let url_valid = $derived(kahoot_regex.test(url_input));
|
||||
let is_loading = $state(false);
|
||||
|
||||
Reference in New Issue
Block a user