securityos/node_modules/stylelint/lib/utils/getDeclarationValue.js

12 lines
228 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
/**
* @param {import('postcss').Declaration} decl
* @returns {string}
*/
module.exports = function getDeclarationValue(decl) {
const raws = decl.raws;
return (raws.value && raws.value.raw) || decl.value;
};