src/_get-expression-value.js
function extractExpressionValue (css) {

    // parse the comment string:
    // /*varValue*/ --> varValue
    const valueRegExp = /(?:\/\*)(.+)(?:\*\/)/;
    const value = css.match(valueRegExp)[1];

    if (!value) {
        message('Warning: empty value');
    }

    return value;
}
function extractExpressionValue (css) {

    // parse the comment string:
    // /*varValue*/ --> varValue
    const valueRegExp = /(?:\/\*)(.+)(?:\*\/)/;
    const value = css.match(valueRegExp)[1];

    if (!value) {
        message('Warning: empty value');
    }

    return value;
}
function extractExpressionValue ( css ) { // parse the comment string: // /*varValue*/ --> varValue const valueRegExp = / (?:\/\*)(.+)(?:\*\/) / ; const value = css . match ( valueRegExp ) [ 1 ] ; if ( ! value ) { message ( 'Warning: empty value' ) ; } return value ; }
Parse calculated variable value
From CSS comment
@param css
@returns {*}
Parse calculated variable value From CSS comment