mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-16 01:10:44 +08:00
✨ 前端搜索过滤如 (2025) 的年份字符
This commit is contained in:
parent
e975b2822b
commit
ac697496d4
@ -955,6 +955,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
searchSuggestions(index, taskname, deep = 1) {
|
searchSuggestions(index, taskname, deep = 1) {
|
||||||
|
taskname = taskname.replace(/\((19|20)\d{2}\)/g, '').trim();
|
||||||
if (taskname.length < 2) {
|
if (taskname.length < 2) {
|
||||||
console.log(`任务名[${taskname}]过短${taskname.length} 不进行搜索`);
|
console.log(`任务名[${taskname}]过短${taskname.length} 不进行搜索`);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user