项目原始demo,不改动
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
このリポジトリはアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュや、課題・プルリクエストのオープンはできません。
 
 
 
 

28 行
508 B

  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. };