mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
Format all plugins with prettier
This commit is contained in:
@ -5,7 +5,7 @@ exports.type = 'perItem';
|
||||
exports.active = true;
|
||||
|
||||
exports.params = {
|
||||
removeAny: true
|
||||
removeAny: true,
|
||||
};
|
||||
|
||||
exports.description = 'removes <desc>';
|
||||
@ -24,9 +24,13 @@ var standardDescs = /^(Created with|Created using)/;
|
||||
*
|
||||
* @author Daniel Wabyick
|
||||
*/
|
||||
exports.fn = function(item, params) {
|
||||
|
||||
return !item.isElem('desc') || !(params.removeAny || item.isEmpty() ||
|
||||
standardDescs.test(item.content[0].text));
|
||||
|
||||
exports.fn = function (item, params) {
|
||||
return (
|
||||
!item.isElem('desc') ||
|
||||
!(
|
||||
params.removeAny ||
|
||||
item.isEmpty() ||
|
||||
standardDescs.test(item.content[0].text)
|
||||
)
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user