Skip to content

Commit

Permalink
Merge pull request #26 from LegoFigure11/patch-1
Browse files Browse the repository at this point in the history
Fix custom sets for species with spaces in name
  • Loading branch information
jake-white committed Mar 31, 2017
2 parents 7b550f5 + b01e414 commit af84307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script_res/setdex_custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ var savecustom = function()
species = lines[0].substring(firstParenth + 1, lastParenth).trim();
}
else
species = lines[0].split(' ')[0].trim(); //species is always first
species = lines[0].split('@')[0].trim(); //species is always first
for(var i = 0; i < showdownFormes.length; ++i)
{
if(species == showdownFormes[i][0])
Expand Down Expand Up @@ -228,4 +228,4 @@ var savecustom = function()
reloadXYScript()


}
}

0 comments on commit af84307

Please sign in to comment.