mirror of
https://github.com/aquatix/alfagok.git
synced 2025-12-06 21:05:10 +01:00
Make sure there's no accidental space before or after the word
This commit is contained in:
@@ -36,7 +36,8 @@ document.addEventListener('alpine:init', () => {
|
||||
async doGuess() {
|
||||
this.guessError = null;
|
||||
|
||||
this.guessValue = this.guessValue.toLowerCase();
|
||||
/* Normalise on lowercase, and strip whitespace from begin and end, just in case */
|
||||
this.guessValue = this.guessValue.toLowerCase().trim();
|
||||
|
||||
if (this.guessValue === '') {
|
||||
console.log('Nothing filled in');
|
||||
|
||||
Reference in New Issue
Block a user