Sha256: 452b0665046b1c308c67dd57e6a575240ba93892e13205eb6da1b85cbc53ad87

Contents?: true

Size: 487 Bytes

Versions: 34

Compression:

Stored size: 487 Bytes

Contents

'use strict';

exports.type = 'perItem';

exports.active = true;

exports.description = 'removes XML processing instructions';

/**
 * Remove XML Processing Instruction.
 *
 * @example
 * <?xml version="1.0" encoding="utf-8"?>
 *
 * @param {Object} item current iteration item
 * @return {Boolean} if false, item will be filtered out
 *
 * @author Kir Belevich
 */
exports.fn = function(item) {

    return !(item.processinginstruction && item.processinginstruction.name === 'xml');

};

Version data entries

34 entries across 31 versions & 11 rubygems

Version Path
ezii-os-5.2.1 node_modules/svgo/plugins/removeXMLProcInst.js
ezii-os-2.0.1 node_modules/svgo/plugins/removeXMLProcInst.js
ezii-os-1.1.0 node_modules/svgo/plugins/removeXMLProcInst.js
ezii-os-1.0.0 node_modules/svgo/plugins/removeXMLProcInst.js
ezii-os-0.0.0.1.0 node_modules/svgo/plugins/removeXMLProcInst.js
ezii-os-0.0.0.0.1 node_modules/svgo/plugins/removeXMLProcInst.js
optimacms-0.4.3 spec/dummy/node_modules/svgo/plugins/removeXMLProcInst.js
optimacms-0.4.2 spec/dummy/node_modules/svgo/plugins/removeXMLProcInst.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/svgo/plugins/removeXMLProcInst.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/postcss-svgo/node_modules/svgo/plugins/removeXMLProcInst.js
locomotivecms-3.4.0 app/javascript/node_modules/postcss-svgo/node_modules/svgo/plugins/removeXMLProcInst.js
locomotivecms-3.4.0 app/javascript/node_modules/svgo/plugins/removeXMLProcInst.js
cortex-0.1.3 spec/dummy/node_modules/svgo/plugins/removeXMLProcInst.js
lanes-0.8.0 node_modules/svgo/plugins/removeXMLProcInst.js