This commit is contained in:
daitingting
2024-01-04 06:45:27 +00:00
parent c7a1d74aae
commit a38de3a833
+1 -1
View File
@@ -33,7 +33,7 @@ function getSearchUrl(searchType, searchValue, callback)
let searchUrl = $.createLink('search', 'index');
searchUrl += (searchUrl.indexOf('?') >= 0 ? '&' : '?') + 'words=' + searchValue + '&type=all';
if(!searchType || searchType == 'all' || /[^0-9]/.test(searchValue)) return callback(searchUrl);
if(!searchType || searchType == 'all' || searchType == 'search' || /[^0-9]/.test(searchValue)) return callback(searchUrl);
const types = searchType.split('-');
const searchModule = types[0];