mirror of
https://github.com/chaoticbackup/chaoticbackup.github.io.git
synced 2026-04-07 09:35:06 -05:00
[fix] creature element only query bug
This commit is contained in:
parent
6cd9f3875f
commit
98d6e77f06
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')}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user