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.

hasTplInterpolation.js 284B

1234567891011
  1. 'use strict';
  2. /**
  3. * Check whether a string has JS template literal interpolation or HTML-like template
  4. *
  5. * @param {string} string
  6. * @return {boolean} If `true`, a string has template literal interpolation
  7. */
  8. module.exports = function (string) {
  9. return /{.+?}/.test(string);
  10. };