Update script.js

This commit is contained in:
Levy,Wang 2025-03-11 19:58:25 +08:00 committed by GitHub
parent d917da36ef
commit 1b22f20ef9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,7 +71,7 @@ async function searchMagnet() {
const container = document.getElementById('coverImageContainer');
const regex = /^[A-Za-z][\w\s]*\d$/;
const regex = /^[A-Za-z][\w\s-]*\d$/;
if (!searchTerm || !regex.test(searchTerm)) {