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 a2916e9 commit 43159bbCopy full SHA for 43159bb
src/util/index.js
@@ -420,6 +420,6 @@ export const extractNumbersAndUnits = value => {
420
421
// Return only the CSS variable name given a CSS variable
422
export const getCSSVarName = value => {
423
- const match = value.match( /var\(\s*([^,)\s]+)/ )
+ const match = value?.match( /var\(\s*([^,)\s]+)/ )
424
return match ? match[ 1 ] : null
425
}
0 commit comments