diff --git a/src/colors.ts b/src/colors.ts index 610d6e0f..a85e2e1e 100644 --- a/src/colors.ts +++ b/src/colors.ts @@ -119,7 +119,7 @@ export const generateSafelist = (colors: string[]) => ['avatar', 'badge', 'butto export const customSafelistExtractor = (prefix, content: string) => { const classes = [] - const regex = /<(\w+)\s+[^>]*color=["']([^"']+)["'][^>]*>/gs + const regex = /<(\w+)\s+[^>:]*color=["']([^"']+)["'][^>]*>/gs const matches = [...content.matchAll(regex)] for (const match of matches) {