Skip to content

Commit

Permalink
Fix replace function
Browse files Browse the repository at this point in the history
  • Loading branch information
dungwinux committed Mar 8, 2019
1 parent 7622111 commit a33ef07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/config/contestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function parseContainer(container) {
if (!Array.isArray(container)) throw new Error("Invalid Container");
let parsedContainer = container
.filter((x) => typeof x === "string")
.map((x) => x.toUpperCase().replace(" ", ""))
.map((x) => x.replace(/\s/g, "").toUpperCase())
.sort((a, b) => a.localeCompare(b));
return [...new Set(parsedContainer)];
}
Expand Down

0 comments on commit a33ef07

Please sign in to comment.