mirror of
https://github.com/thangisme/notes.git
synced 2025-11-23 13:12:25 -05:00
Initial commit
This commit is contained in:
20
node_modules/stylelint/lib/utils/hasInterpolation.js
generated
vendored
Normal file
20
node_modules/stylelint/lib/utils/hasInterpolation.js
generated
vendored
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user