diff --git a/apps/stock-price-checker/controllers/stockHandler.js b/apps/stock-price-checker/controllers/stockHandler.js index 48f24b60..c618ae6e 100644 --- a/apps/stock-price-checker/controllers/stockHandler.js +++ b/apps/stock-price-checker/controllers/stockHandler.js @@ -82,7 +82,7 @@ function StockHandler() { const validTickerRegExp = /^[a-z]{1,6}$/; const isValidStock = stock => { const stockL = stock.toLowerCase().trim(); - validTickerRegExp.test(stockL); + return validTickerRegExp.test(stockL); }; module.exports = StockHandler;