first commit
This commit is contained in:
24
node_modules/stylelint/lib/utils/hasInterpolation.mjs
generated
vendored
Normal file
24
node_modules/stylelint/lib/utils/hasInterpolation.mjs
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import hasLessInterpolation from './hasLessInterpolation.mjs';
|
||||
import hasPsvInterpolation from './hasPsvInterpolation.mjs';
|
||||
import hasScssInterpolation from './hasScssInterpolation.mjs';
|
||||
import hasTplInterpolation from './hasTplInterpolation.mjs';
|
||||
|
||||
/**
|
||||
* Check whether a string has interpolation
|
||||
*
|
||||
* @param {string} string
|
||||
* @returns {boolean} If `true`, a string has interpolation
|
||||
*/
|
||||
export default function hasInterpolation(string) {
|
||||
// SCSS or Less interpolation
|
||||
if (
|
||||
hasLessInterpolation(string) ||
|
||||
hasScssInterpolation(string) ||
|
||||
hasTplInterpolation(string) ||
|
||||
hasPsvInterpolation(string)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user