We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85c3c9d commit 71766f6Copy full SHA for 71766f6
src/util/index.js
@@ -420,6 +420,9 @@ export const extractNumbersAndUnits = value => {
420
421
// Return only the CSS variable name given a CSS variable
422
export const getCSSVarName = value => {
423
+ if ( typeof value !== 'string' ) {
424
+ return null
425
+ }
426
const match = value?.match( /var\(\s*([^,)\s]+)/ )
427
return match ? match[ 1 ] : null
428
}
0 commit comments