Skip to content

Commit d3d4fe5

Browse files
committed
refactor: optimized regex
1 parent d44d891 commit d3d4fe5

File tree

1 file changed

+1
-1
lines changed
  • packages/stylelint-config-if-function/src

1 file changed

+1
-1
lines changed

packages/stylelint-config-if-function/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const config = {
44
true,
55
{
66
ignoreProperties: {
7-
'/.+/': ['/^if(.*)/']
7+
'/.+/': [String.raw`/^if\((?:[^;]+:[^;]*;?)+\)$/`]
88
}
99
}
1010
],

0 commit comments

Comments
 (0)