UNPKG

stylelint

Version:

A mighty CSS linter that helps you avoid errors and enforce conventions.

12 lines (10 loc) 267 B
const HAS_PSV_INTERPOLATION = /\$\(.+?\)/; /** * Check whether a string has postcss-simple-vars interpolation * * @param {string} string * @returns {boolean} */ export default function hasPsvInterpolation(string) { return HAS_PSV_INTERPOLATION.test(string); }