From 869c2918a7fcfbed4e1d68e5c310396c58741b5e Mon Sep 17 00:00:00 2001 From: James Date: Mon, 19 Jun 2017 14:15:31 +1000 Subject: [PATCH] Fixed bad sorting --- scripts/games/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/games/app.js b/scripts/games/app.js index 975748b..16d1b10 100644 --- a/scripts/games/app.js +++ b/scripts/games/app.js @@ -128,8 +128,8 @@ function processGame(game) { let trimmedTitle = model.title.toLowerCase(); toTrim.forEach(trim => { - if (trimmedTitle.startsWith(trim)) { - trimmedTitle = trimmedTitle.substr(trim.length + 1); + if (trimmedTitle.startsWith(trim + " ")) { + trimmedTitle = trimmedTitle.substr(trim.length + 2); } });