Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Refactor
  • Loading branch information
thecrypticace committed Mar 28, 2021
commit 94a88e624a6c239e24efea0bc678f644571788ca
9 changes: 8 additions & 1 deletion src/lib/generateRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,15 @@ function* resolveMatchedPlugins(classCandidate, context) {
}

for (let [prefix, modifier] of candidatePermutations(candidatePrefix)) {
let modifiers = [modifier]

if (context.candidateRuleMap.has(prefix)) {
yield [context.candidateRuleMap.get(prefix), negative ? `-${modifier}` : modifier]
let rules = context.candidateRuleMap.get(prefix)

for (const modifier of modifiers) {
yield [rules, negative ? `-${modifier}` : modifier]
}

return
}
}
Expand Down