1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-10 21:30:14 +08:00
This commit is contained in:
WangXinhai 2018-04-01 14:30:19 +08:00 committed by GitHub
parent d079d126b6
commit 0d21a7be8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
})