Initial commit

This commit is contained in:
Patrick Marsceill
2017-03-09 13:16:08 -05:00
commit b7b0d0d7bf
4147 changed files with 401224 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
/* @flow */
"use strict"
const hasLessInterpolation = require("../utils/hasLessInterpolation")
const hasPsvInterpolation = require("../utils/hasPsvInterpolation")
const hasScssInterpolation = require("../utils/hasScssInterpolation")
/**
* Check whether a string has interpolation
*
* @param {string} string
* @return {boolean} If `true`, a string has interpolation
*/
module.exports = function (string/*: string*/)/*: boolean*/ {
// SCSS or Less interpolation
if (hasLessInterpolation(string) || hasScssInterpolation(string) || hasPsvInterpolation(string)) {
return true
}
return false
}