mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-18 03:55:32 +00:00
31 lines
849 B
JavaScript
31 lines
849 B
JavaScript
// NOTICE: This file is generated by Rollup. To modify it,
|
|
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
|
|
'use strict';
|
|
|
|
const hasLessInterpolation = require('./hasLessInterpolation.cjs');
|
|
const hasPsvInterpolation = require('./hasPsvInterpolation.cjs');
|
|
const hasScssInterpolation = require('./hasScssInterpolation.cjs');
|
|
const hasTplInterpolation = require('./hasTplInterpolation.cjs');
|
|
|
|
/**
|
|
* Check whether a string has interpolation
|
|
*
|
|
* @param {string} string
|
|
* @returns {boolean} If `true`, a string has interpolation
|
|
*/
|
|
function hasInterpolation(string) {
|
|
// SCSS or Less interpolation
|
|
if (
|
|
hasLessInterpolation(string) ||
|
|
hasScssInterpolation(string) ||
|
|
hasTplInterpolation(string) ||
|
|
hasPsvInterpolation(string)
|
|
) {
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
module.exports = hasInterpolation;
|