diff options
Diffstat (limited to 'assets/node_modules/stylelint-scss/dist/utils/hasTplInterpolation.js')
-rw-r--r-- | assets/node_modules/stylelint-scss/dist/utils/hasTplInterpolation.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/assets/node_modules/stylelint-scss/dist/utils/hasTplInterpolation.js b/assets/node_modules/stylelint-scss/dist/utils/hasTplInterpolation.js new file mode 100644 index 0000000..b1ecb67 --- /dev/null +++ b/assets/node_modules/stylelint-scss/dist/utils/hasTplInterpolation.js @@ -0,0 +1,16 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = _default; + +/** + * Check whether a string has JS template literal interpolation or HTML-like template + * + * @param {string} string + * @return {boolean} If `true`, a string has template literal interpolation + */ +function _default(string) { + return /{.+?}/.test(string); +}
\ No newline at end of file |