Skip to content

Commit

Permalink
Fix selector-id-pattern performance (#7013)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeddy3 committed Jun 30, 2023
1 parent 76a4648 commit 3ec4821
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silly-eagles-grow.md
@@ -0,0 +1,5 @@
---
"stylelint": patch
---

Fixed: `selector-id-pattern` performance
2 changes: 1 addition & 1 deletion lib/rules/selector-id-pattern/index.js
Expand Up @@ -31,7 +31,7 @@ const rule = (primary) => {

const normalizedPattern = isString(primary) ? new RegExp(primary) : primary;

root.walkRules((ruleNode) => {
root.walkRules(/#/, (ruleNode) => {
if (!isStandardSyntaxRule(ruleNode)) {
return;
}
Expand Down

0 comments on commit 3ec4821

Please sign in to comment.