lib/rules/attribute-value-quote.js
function calcValueInfo(valueToken) {
    const text = valueToken.htmlValue
    const firstChar = text[0]
    const quote = firstChar === "'" || firstChar === '"' ? firstChar : undefined
    const content = quote ? text.slice(1, -1) : text
    return {
        quote,
        content,
    }
}
function calcValueInfo(valueToken) {
    const text = valueToken.htmlValue
    const firstChar = text[0]
    const quote = firstChar === "'" || firstChar === '"' ? firstChar : undefined
    const content = quote ? text.slice(1, -1) : text
    return {
        quote,
        content,
    }
}
function calcValueInfo ( valueToken ) { const text = valueToken . htmlValue const firstChar = text [ 0 ] const quote = firstChar === "'" || firstChar === '"' ? firstChar : undefined const content = quote ? text . slice ( 1 , - 1 ) : text return { quote , content , } }
get the value info.
@param {Token} valueToken The value token.
@returns {object} the value info.
get the value info .