mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
go!
This commit is contained in:
18
plugins/removeComments.js
Normal file
18
plugins/removeComments.js
Normal file
@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Remove comments.
|
||||
*
|
||||
* @example
|
||||
* <!-- Generator: Adobe Illustrator 15.0.0, SVG Export
|
||||
* Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
*
|
||||
* @param {Object} item current iteration item
|
||||
* @param {Object} params plugin params
|
||||
* @return {Boolean} if false, item will be filtered out
|
||||
*
|
||||
* @author Kir Belevich
|
||||
*/
|
||||
exports.removeComments = function(item, params) {
|
||||
|
||||
return !item.isComment();
|
||||
|
||||
};
|
Reference in New Issue
Block a user