Sha256: 86430d847e9f3984ce0946fa137c87381c03a6291c86b1f27af010178c9b619d
Contents?: true
Size: 683 Bytes
Versions: 24
Compression:
Stored size: 683 Bytes
Contents
'use strict'; const hasLessInterpolation = require('../utils/hasLessInterpolation'); const hasPsvInterpolation = require('../utils/hasPsvInterpolation'); const hasScssInterpolation = require('../utils/hasScssInterpolation'); const hasTplInterpolation = require('../utils/hasTplInterpolation'); /** * Check whether a string has interpolation * * @param {string} string * @return {boolean} If `true`, a string has interpolation */ module.exports = function (string) { // SCSS or Less interpolation if ( hasLessInterpolation(string) || hasScssInterpolation(string) || hasTplInterpolation(string) || hasPsvInterpolation(string) ) { return true; } return false; };
Version data entries
24 entries across 24 versions & 1 rubygems