1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/discourse_ynh.git synced 2024-09-03 18:26:18 +02:00
discourse_ynh/sources/patches/main-5-fix-admin-watched-words-action.patch
2024-05-23 10:22:14 +02:00

15 lines
607 B
Diff

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 2b53a91eb3..eec55647d5 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
@@ -32,9 +32,9 @@
for (const { regexp, word } of words) {
try {
RegExp(regexp);
- } catch {
+ } catch (err) {
return I18n.t("admin.watched_words.invalid_regex", { word });
}
}
},