mirror of
https://github.com/chaoticbackup/chaoticbackup.github.io.git
synced 2026-08-21 08:04:18 -05:00
[fix] creature element only query bug
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -174,7 +174,7 @@ export default function search_api(input) {
|
||||
|
||||
if (el !== "") {
|
||||
creatureResults = creatureResults.find({'gsx$elements':
|
||||
{'$regex': new RegExp("^" + el.substring(0, el.length-2), 'i')}
|
||||
{'$regex': new RegExp("^" + el.substring(0, el.length-2) + "\s*$", 'i')}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user