From 0fe3a21be9b97a5b85c78c877af47dab0b573b75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lasse=20J=C3=B8rgensen?= <28780271+lasjorg@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:14:29 +0200 Subject: [PATCH] fix(stock price checker): add missing function return (#612) --- apps/stock-price-checker/controllers/stockHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;