UNPKG

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