Skip to content

Commit

Permalink
fixed a type in generateRules.js (#11264)
Browse files Browse the repository at this point in the history
  • Loading branch information
kouznetsov1 authored and thecrypticace committed Jul 13, 2023
1 parent 267e4e0 commit 0140b5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/generateRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ function applyVariant(variant, matches, context) {
// group[:hover] (`-` is missing)
let match = /(.)(-?)\[(.*)\]/g.exec(variant)
if (match) {
let [, char, seperator, value] = match
let [, char, separator, value] = match
// @-[200px] case
if (char === '@' && seperator === '-') return []
if (char === '@' && separator === '-') return []
// group[:hover] case
if (char !== '@' && seperator === '') return []
if (char !== '@' && separator === '') return []

variant = variant.replace(`${seperator}[${value}]`, '')
variant = variant.replace(`${separator}[${value}]`, '')
args.value = value
}
}
Expand Down

0 comments on commit 0140b5b

Please sign in to comment.