hasDimension.cjs 431 B

1234567891011121314151617
  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 HAS_DIMENSION_LIKE_VALUES = /\d[%\w-]/;
  5. /**
  6. * Check if a value contains any dimension-like values.
  7. *
  8. * @param {string} value
  9. * @returns {boolean}
  10. */
  11. function hasDimension(value) {
  12. return HAS_DIMENSION_LIKE_VALUES.test(value);
  13. }
  14. module.exports = hasDimension;