blob: bc1fae43e99b00688a0c425304b9e9a75fee33cf [file] [log] [blame]
const HAS_LESS_INTERPOLATION = /@\{.+?\}/;
/**
* Check whether a string has less interpolation
*
* @param {string} string
* @returns {boolean} If `true`, a string has less interpolation
*/
export default function hasLessInterpolation(string) {
return HAS_LESS_INTERPOLATION.test(string);
}