Skip to content

Commit

Permalink
Add thin space to hangman strings
Browse files Browse the repository at this point in the history
- Hangman games now use a thin space character (U+2009) for a small distinguishing space between the lines.
- Updated ESLint config to ignore the warning that this creates.
  • Loading branch information
LakeYS committed Mar 6, 2019
1 parent 07eb3da commit 5441d53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.json
Expand Up @@ -26,6 +26,7 @@
"always"
],
"no-console": "off",
"no-irregular-whitespace": "off",
"block-scoped-var": [
"warn"
]
Expand Down
5 changes: 4 additions & 1 deletion triviabot.js
Expand Up @@ -881,7 +881,10 @@ Trivia.doGame = async function(id, channel, author, scheduled, category, typeInp
obscuredAnswer = `${obscuredAnswer}${char}`;
}
else {
obscuredAnswer = `${obscuredAnswer}\\_`;
// A thin space character (U+2009) is used so the underscores have
// a small distinguishing space between them.
// ESLint really doesn't like this, but it works great!
obscuredAnswer = `${obscuredAnswer}\\_ `;
}
}

Expand Down

0 comments on commit 5441d53

Please sign in to comment.