mirror of
https://github.com/levywang/avhub.git
synced 2026-02-21 16:57:21 +08:00
fix(reg):user search string regular optimization
This commit is contained in:
parent
df7592dc2b
commit
4b9fcdef43
@ -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)) {
|
||||
|
||||
@ -1504,4 +1504,4 @@ function showThemeMenu(button) {
|
||||
}
|
||||
};
|
||||
document.addEventListener('keydown', handleEscape);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user