From 304d5325b28a539ea6877b1d74f8d07ad77ba393 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 15 Jul 2018 02:34:20 +0000 Subject: [PATCH] Fix --- commands/search/scrabble-score.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/search/scrabble-score.js b/commands/search/scrabble-score.js index a2286b12..5e267167 100644 --- a/commands/search/scrabble-score.js +++ b/commands/search/scrabble-score.js @@ -1,5 +1,5 @@ const Command = require('../../structures/Command'); -const letters = require('../../assets/json/roman-numeral'); +const letters = require('../../assets/json/scrabble-score'); module.exports = class ScrabbleScoreCommand extends Command { constructor(client) { @@ -15,7 +15,7 @@ module.exports = class ScrabbleScoreCommand extends Command { prompt: 'What word would you like to get the scrabble score of?', type: 'string', validate: word => { - if (/[A-Za-z ]/i.test(word.toLowerCase())) return true; + if (/^[A-Za-z ]+$/i.test(word.toLowerCase())) return true; return 'Invalid word, please only use A-Z and space.'; }, parse: word => word.toLowerCase()