From 0140b5bdd32b3fe81a391b4c7d89925bb80d5895 Mon Sep 17 00:00:00 2001 From: Daniel Kouznetsov Date: Mon, 22 May 2023 14:34:10 +0200 Subject: [PATCH] fixed a type in generateRules.js (#11264) --- src/lib/generateRules.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/generateRules.js b/src/lib/generateRules.js index 60da2323fc94..cbd671075b29 100644 --- a/src/lib/generateRules.js +++ b/src/lib/generateRules.js @@ -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 } }