前端搜索过滤如 (2025) 的年份字符

This commit is contained in:
Cp0204 2025-08-22 19:43:07 +08:00
parent e975b2822b
commit de37c26423

View File

@ -955,6 +955,7 @@
}
},
searchSuggestions(index, taskname, deep = 1) {
taskname = taskname.replace(/\((19|20)\d{2}\)/g, '').trim();
if (taskname.length < 2) {
console.log(`任务名[${taskname}]过短${taskname.length} 不进行搜索`);
return;