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.

isKeyframeSelector.js 406B

12345678910111213141516171819202122
  1. 'use strict';
  2. const keywordSets = require('../reference/keywordSets');
  3. /**
  4. * Check whether a string is a keyframe selector.
  5. *
  6. * @param {string} selector
  7. * @returns {boolean}
  8. */
  9. module.exports = function (selector) {
  10. if (keywordSets.keyframeSelectorKeywords.has(selector)) {
  11. return true;
  12. }
  13. // Percentages
  14. if (/^(?:\d+\.?\d*|\d*\.?\d+)%$/.test(selector)) {
  15. return true;
  16. }
  17. return false;
  18. };