From 82a8c16e5166fa3abfe88f5d00071cd0daf31c7f Mon Sep 17 00:00:00 2001
From: Peng-YM <1048217874pengym@gmail.com>
Date: Thu, 3 Sep 2020 12:54:34 +0800
Subject: [PATCH] Bug fixed for keyword replace
---
backend/.idea/workspace.xml | 68 +++++++++++++++++++------------------
backend/sub-store.js | 2 +-
2 files changed, 36 insertions(+), 34 deletions(-)
diff --git a/backend/.idea/workspace.xml b/backend/.idea/workspace.xml
index a99564a..45b388a 100644
--- a/backend/.idea/workspace.xml
+++ b/backend/.idea/workspace.xml
@@ -20,6 +20,7 @@
+
@@ -96,7 +97,8 @@
-
+
+
@@ -116,7 +118,7 @@
-
+
@@ -127,8 +129,8 @@
-
-
+
+
@@ -139,8 +141,8 @@
-
-
+
+
@@ -151,8 +153,8 @@
-
-
+
+
@@ -163,8 +165,8 @@
-
-
+
+
@@ -175,8 +177,8 @@
-
-
+
+
@@ -187,8 +189,8 @@
-
-
+
+
@@ -199,8 +201,8 @@
-
-
+
+
@@ -211,8 +213,8 @@
-
-
+
+
@@ -223,8 +225,8 @@
-
-
+
+
@@ -235,8 +237,8 @@
-
-
+
+
@@ -247,8 +249,8 @@
-
-
+
+
@@ -259,8 +261,8 @@
-
-
+
+
@@ -271,8 +273,8 @@
-
-
+
+
@@ -283,8 +285,8 @@
-
-
+
+
@@ -295,8 +297,8 @@
-
-
+
+
@@ -307,7 +309,7 @@
-
+
diff --git a/backend/sub-store.js b/backend/sub-store.js
index 0845cb0..7243791 100644
--- a/backend/sub-store.js
+++ b/backend/sub-store.js
@@ -1785,7 +1785,7 @@ function KeywordRenameOperator(keywords) {
func: (proxies) => {
return proxies.map((proxy) => {
for (const {old, now} of keywords) {
- proxy.name = proxy.name.replace(old, now).trim();
+ proxy.name = proxy.name.replaceAll(old, now).trim();
}
return proxy;
});