Sha256: 7f9fabff3ba432404116a24a9aaff0c32bf2ee605398990f7ffed35c21d61dee
Contents?: true
Size: 535 Bytes
Versions: 24
Compression:
Stored size: 535 Bytes
Contents
/** * Check whether a property is standard * * @param {string} property * @return {boolean} If `true`, the property is standard */ module.exports = function isStandardSyntaxProperty(property) { // SCSS var (e.g. $var: x), list (e.g. $list: (x)) or map (e.g. $map: (key:value)) if (property.startsWith('$')) { return false; } // Less var (e.g. @var: x) if (property.startsWith('@')) { return false; } // SCSS or Less interpolation if (/#{.+?}|@{.+?}|\$\(.+?\)/.test(property)) { return false; } return true; };
Version data entries
24 entries across 24 versions & 1 rubygems