source: frontend/node_modules/svgo/plugins/removeComments.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 508 bytes
Line 
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};
Note: See TracBrowser for help on using the repository browser.