[fix] creature element only query bug

This commit is contained in:
Daniel 2019-04-03 02:34:58 -04:00
parent 6cd9f3875f
commit 98d6e77f06
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -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')}
});
}
}