From 22f346fc8cc2c8d8c0edc5d71c3b8ad3d363f09e Mon Sep 17 00:00:00 2001 From: dazedanon Date: Fri, 23 May 2025 11:55:55 -0500 Subject: [PATCH] Adjust plugin to work with english --- www/js/plugins.js | 4 ++-- www/js/plugins/PANDA_KeywordColor.js | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/www/js/plugins.js b/www/js/plugins.js index 7ce2e2c..f80390a 100644 --- a/www/js/plugins.js +++ b/www/js/plugins.js @@ -39,7 +39,7 @@ var $plugins = [ displacementImage: "DisplacementMap", "enabledAll-Settings": "", "enabledAll-ShowInOptionMenu": "true", - "enabledAll-Text": "フィルター効果", + "enabledAll-Text": "Filter Effects", "enabledAll-DefaultValue": "true", }, }, @@ -197,7 +197,7 @@ var $plugins = [ displacementImage: "DisplacementMap", "enabledAll-Settings": "", "enabledAll-ShowInOptionMenu": "true", - "enabledAll-Text": "フィルター効果", + "enabledAll-Text": "Filter Effects", "enabledAll-DefaultValue": "true", }, }, diff --git a/www/js/plugins/PANDA_KeywordColor.js b/www/js/plugins/PANDA_KeywordColor.js index 765f015..501f255 100644 --- a/www/js/plugins/PANDA_KeywordColor.js +++ b/www/js/plugins/PANDA_KeywordColor.js @@ -148,11 +148,8 @@ let c = parseInt(ColorList[i]) || 0; keyString += k; keyMap.set(k, c); - } - } - - // RegExp Object - const keyRegExp = new RegExp("<([" + keyString + "])(.+?)>", "ig"); + } } // RegExp Object + const keyRegExp = new RegExp("(?]*>|\\[[0-9]+\\])?)<([" + keyString + "])([^>]+)>", "ig"); //--------------------------------------------------