From a61e5aa06b5a80bf1c76a718dfa3749a992e8e65 Mon Sep 17 00:00:00 2001 From: Simon He <57086651+Simon-He95@users.noreply.github.com> Date: Thu, 20 Jun 2024 18:02:11 +0800 Subject: [PATCH] fix: typo (#13864) --- src/corePlugins.js | 2 +- src/util/parseAnimationValue.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corePlugins.js b/src/corePlugins.js index a98582af5dd2..be2a106c2333 100644 --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -412,7 +412,7 @@ export let variantPlugins = { let check = normalize(value) let isRaw = /^\w*\s*\(/.test(check) - // Chrome has a bug where `(condtion1)or(condition2)` is not valid + // Chrome has a bug where `(condition1)or(condition2)` is not valid // But `(condition1) or (condition2)` is supported. check = isRaw ? check.replace(/\b(and|or|not)\b/g, ' $1 ') : check diff --git a/src/util/parseAnimationValue.js b/src/util/parseAnimationValue.js index 990e7aa8c8bc..85b27cb3b3cc 100644 --- a/src/util/parseAnimationValue.js +++ b/src/util/parseAnimationValue.js @@ -13,7 +13,7 @@ const TIMINGS = new Set([ ]) const TIMING_FNS = ['cubic-bezier', 'steps'] -const COMMA = /\,(?![^(]*\))/g // Comma separator that is not located between brackets. E.g.: `cubiz-bezier(a, b, c)` these don't count. +const COMMA = /\,(?![^(]*\))/g // Comma separator that is not located between brackets. E.g.: `cubic-bezier(a, b, c)` these don't count. const SPACE = /\ +(?![^(]*\))/g // Similar to the one above, but with spaces instead. const TIME = /^(-?[\d.]+m?s)$/ const DIGIT = /^(\d+)$/