2024-08-30 11:55:29 +02:00
|
|
|
From 714ba4449257b3770dfe991b1a19bda0b147d56e Mon Sep 17 00:00:00 2001
|
|
|
|
From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= <felix.piedallu@semtech.com>
|
|
|
|
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(-)
|
|
|
|
|
2022-07-27 04:15:08 +02:00
|
|
|
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
|
2024-08-30 11:55:29 +02:00
|
|
|
index d5ad0c49..faeb04ab 100644
|
2022-07-27 04:15:08 +02:00
|
|
|
--- a/app/assets/javascripts/admin/addon/controllers/admin-watched-words-action.js
|
|
|
|
+++ b/app/assets/javascripts/admin/addon/controllers/admin-watched-words-action.js
|
2024-08-30 11:55:29 +02:00
|
|
|
@@ -37,7 +37,7 @@ export default class AdminWatchedWordsActionController extends Controller {
|
2022-07-27 04:15:08 +02:00
|
|
|
for (const { regexp, word } of words) {
|
|
|
|
try {
|
|
|
|
RegExp(regexp);
|
|
|
|
- } catch {
|
|
|
|
+ } catch (err) {
|
|
|
|
return I18n.t("admin.watched_words.invalid_regex", { word });
|
|
|
|
}
|
|
|
|
}
|
2024-08-30 11:55:29 +02:00
|
|
|
--
|
|
|
|
2.43.0
|
|
|
|
|