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.

isStandardSyntaxMediaFeatureName.js 287B

12345678910111213141516
  1. 'use strict';
  2. /**
  3. * Check whether a media feature name is standard
  4. *
  5. * @param {string} mediaFeatureName
  6. * @returns {boolean}
  7. */
  8. module.exports = function (mediaFeatureName) {
  9. // SCSS interpolation
  10. if (/#{.+?}|\$.+?/.test(mediaFeatureName)) {
  11. return false;
  12. }
  13. return true;
  14. };