Skip to content

Commit

Permalink
refactor: force match at init in regexExpr safelist
Browse files Browse the repository at this point in the history
  • Loading branch information
Siumauricio committed Jan 7, 2023
1 parent acc76c2 commit 58047da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/utils/safeList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { SafelistConfig } from "tailwindcss/types/config";
export const safeList: Partial<SafelistConfig> = [
{
pattern:
/(bg|to|via|from|text|fill|stroke|border|outline)-((primary|secondary|warning|error|success|content1|content2|content3|backgroundPrimary|backgroundSecondary|border|black|white|whiteInverted|blackInverted)|((blue|red|green|purple|pink|gray|cyan|slate)-(50|100|200|300|400|500|600|700|800|900)))/,
/^(bg|to|via|from|text|fill|stroke|border|outline)-((primary|secondary|warning|error|success|content1|content2|content3|backgroundPrimary|backgroundSecondary|border|black|white|whiteInverted|blackInverted)|((blue|red|green|purple|pink|gray|cyan|slate)-(50|100|200|300|400|500|600|700|800|900)))/,
variants: [
// "first",
// "last",
Expand Down

1 comment on commit 58047da

@vercel
Copy link

@vercel vercel bot commented on 58047da Jan 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.