mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-19 22:41:42 +01:00
fix(module): safelist regex when a : was present before color
Also prevents parsing colors already safelisted initially.
This commit is contained in:
@@ -156,7 +156,7 @@ export default defineNuxtModule<ModuleOptions>({
|
||||
vue: (content) => {
|
||||
return [
|
||||
...defaultExtractor(content),
|
||||
...customSafelistExtractor(options.prefix, content, nuxt.options.appConfig.ui.colors)
|
||||
...customSafelistExtractor(options.prefix, content, nuxt.options.appConfig.ui.colors, options.safelistColors)
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user