diff options
| author | Shmuel83 <[email protected]> | 2016-06-21 13:59:08 +0200 |
|---|---|---|
| committer | Shmuel83 <[email protected]> | 2016-06-21 13:59:08 +0200 |
| commit | dc018dd775d8595111741b65edb92534cfccdd1b (patch) | |
| tree | 5da60c9fa7158279630450586d3f3c9ae549067a /js/wordsearch.js | |
| parent | 62b4ceadd3ecd667d14873ee756fa7c8cb7a45d2 (diff) | |
| download | word-search-game-dc018dd775d8595111741b65edb92534cfccdd1b.tar.gz word-search-game-dc018dd775d8595111741b65edb92534cfccdd1b.zip | |
Removes whitespace
Diffstat (limited to 'js/wordsearch.js')
| -rw-r--r-- | js/wordsearch.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/wordsearch.js b/js/wordsearch.js index 8753ea9..54da018 100644 --- a/js/wordsearch.js +++ b/js/wordsearch.js @@ -64,8 +64,8 @@ for (var i = 0; i < this.settings.words.length; i++) { // Convert all the letters to upper case - this.settings.wordsList[i] = this.settings.words[i]; - this.settings.words[i] = removeDiacritics(this.settings.wordsList[i].toUpperCase()); + this.settings.wordsList[i] = this.settings.words[i].trim(); + this.settings.words[i] = removeDiacritics(this.settings.wordsList[i].trim().toUpperCase()); var word = this.settings.words[i]; if (word.length > maxSize) { |
