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.

27 lines
508 B

4 years ago
  1. 'use strict';
  2. exports.type = 'perItem';
  3. exports.active = true;
  4. exports.description = 'removes comments';
  5. /**
  6. * Remove comments.
  7. *
  8. * @example
  9. * <!-- Generator: Adobe Illustrator 15.0.0, SVG Export
  10. * Plug-In . SVG Version: 6.00 Build 0) -->
  11. *
  12. * @param {Object} item current iteration item
  13. * @return {Boolean} if false, item will be filtered out
  14. *
  15. * @author Kir Belevich
  16. */
  17. exports.fn = function(item) {
  18. if (item.comment && item.comment.charAt(0) !== '!') {
  19. return false;
  20. }
  21. };