From 0d21a7be8dead91e98986bc28da4f18c6a0dd4f3 Mon Sep 17 00:00:00 2001 From: WangXinhai <18907191365@189.cn> Date: Sun, 1 Apr 2018 14:30:19 +0800 Subject: [PATCH] fix --- src/components/ThemePicker/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ThemePicker/index.vue b/src/components/ThemePicker/index.vue index ea615e86..052f6319 100644 --- a/src/components/ThemePicker/index.vue +++ b/src/components/ThemePicker/index.vue @@ -72,7 +72,7 @@ export default { let repl = new RegExp(`(^|})([^{]+{[^{}]+)${color}\\b([^}]*)(?=})`, 'gi') let nestRepl = new RegExp(color, 'ig') // for greed matching before the 'color' let v - while ((v = repl.exec(data))) { + while ((v = repl.exec(style))) { colorOverrides.push(v[2].replace(nestRepl, value) + value + v[3] + '}') // '}' not captured in the regexp repl to reserve it as locator-boundary } })