Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hasInterpolation.js 683B

1234567891011121314151617181920212223242526
  1. 'use strict';
  2. const hasLessInterpolation = require('../utils/hasLessInterpolation');
  3. const hasPsvInterpolation = require('../utils/hasPsvInterpolation');
  4. const hasScssInterpolation = require('../utils/hasScssInterpolation');
  5. const hasTplInterpolation = require('../utils/hasTplInterpolation');
  6. /**
  7. * Check whether a string has interpolation
  8. *
  9. * @param {string} string
  10. * @return {boolean} If `true`, a string has interpolation
  11. */
  12. module.exports = function (string) {
  13. // SCSS or Less interpolation
  14. if (
  15. hasLessInterpolation(string) ||
  16. hasScssInterpolation(string) ||
  17. hasTplInterpolation(string) ||
  18. hasPsvInterpolation(string)
  19. ) {
  20. return true;
  21. }
  22. return false;
  23. };