mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Merge pull request #41059 from bgobandit/caseinsensitive
Create Object/Create Mob search is no longer CaSe SENsiTiVE.
This commit is contained in:
committed by
yogstation13-bot
parent
8ea3ad68bc
commit
8effc3646f
@@ -72,14 +72,15 @@
|
||||
|
||||
function updateSearch()
|
||||
{
|
||||
old_search = document.spawner.filter.value;
|
||||
old_search = document.spawner.filter.value.toLowerCase();
|
||||
|
||||
|
||||
var filtered = new Array();
|
||||
var i;
|
||||
for (i in objects)
|
||||
{
|
||||
if(objects[i].search(old_search) < 0)
|
||||
var caseInsensitiveObject = objects[i].toLowerCase();
|
||||
if(caseInsensitiveObject.search(old_search) < 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user