1
0
mirror of https://github.com/thangisme/notes.git synced 2024-06-27 13:05:30 +00:00
notes/node_modules/stylelint/lib/utils/hasInterpolation.js
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

21 lines
607 B
JavaScript

/* @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
}