mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-09-10 21:30:14 +08:00
fix
This commit is contained in:
parent
2ea0f80a2d
commit
385c021651
@ -69,7 +69,8 @@ export default {
|
|||||||
const colorOverrides = [] // only capture color overides
|
const colorOverrides = [] // only capture color overides
|
||||||
oldCluster.forEach((color, index) => {
|
oldCluster.forEach((color, index) => {
|
||||||
const value = newCluster[index]
|
const value = newCluster[index]
|
||||||
const repl = new RegExp(`(^|})([^{]+{[^{}]+)${color}\\b([^}]*)(?=})`, 'gi')
|
const color_plain = color.replace(/([()])/g,'\\$1')
|
||||||
|
const repl = new RegExp(`(^|})([^{]+{[^{}]+)${color_plain}\\b([^}]*)(?=})`, 'gi')
|
||||||
const nestRepl = new RegExp(color, 'ig') // for greed matching before the 'color'
|
const nestRepl = new RegExp(color, 'ig') // for greed matching before the 'color'
|
||||||
let v
|
let v
|
||||||
while ((v = repl.exec(style))) {
|
while ((v = repl.exec(style))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user