isStandardSyntaxKeyframesName.cjs 512 B

123456789101112131415161718192021
  1. // NOTICE: This file is generated by Rollup. To modify it,
  2. // please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
  3. 'use strict';
  4. const hasInterpolation = require('./hasInterpolation.cjs');
  5. /**
  6. * Check whether a keyframes name is standard
  7. *
  8. * @param {string} keyframesName
  9. * @returns {boolean}
  10. */
  11. function isStandardSyntaxKeyframesName(keyframesName) {
  12. if (hasInterpolation(keyframesName)) {
  13. return false;
  14. }
  15. return true;
  16. }
  17. module.exports = isStandardSyntaxKeyframesName;