From 714ba4449257b3770dfe991b1a19bda0b147d56e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 30 Aug 2024 11:52:09 +0200 Subject: [PATCH] Fix admin-watched-words-action.js --- .../admin/addon/controllers/admin-watched-words-action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/addon/controllers/admin-watched-words-action.js b/app/assets/javascripts/admin/addon/controllers/admin-watched-words-action.js index d5ad0c49..faeb04ab 100644 --- a/app/assets/javascripts/admin/addon/controllers/admin-watched-words-action.js +++ b/app/assets/javascripts/admin/addon/controllers/admin-watched-words-action.js @@ -37,7 +37,7 @@ export default class AdminWatchedWordsActionController extends Controller { for (const { regexp, word } of words) { try { RegExp(regexp); - } catch { + } catch (err) { return I18n.t("admin.watched_words.invalid_regex", { word }); } } -- 2.43.0