1234567891011121314151617181920212223242526272829303132 |
- 'use strict';
- exports.type = 'perItem';
- exports.active = true;
- exports.params = {
- removeAny: true
- };
- exports.description = 'removes <desc>';
- var standardDescs = /^(Created with|Created using)/;
- exports.fn = function(item, params) {
- return !item.isElem('desc') || !(params.removeAny || item.isEmpty() ||
- standardDescs.test(item.content[0].text));
- };
|