From c19511ef7ae71a1fd9de4b46b17f41a74f07073c Mon Sep 17 00:00:00 2001 From: GreLI Date: Sun, 13 Sep 2015 15:27:33 +0300 Subject: [PATCH] stop cleanupIDs if there is style or script --- plugins/cleanupIDs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/cleanupIDs.js b/plugins/cleanupIDs.js index af041cf9..6ae6d914 100644 --- a/plugins/cleanupIDs.js +++ b/plugins/cleanupIDs.js @@ -49,7 +49,7 @@ exports.fn = function(data, params) { */ function monkeys(items) { - for (var i = 0; i < items.content.length; i++) { + for (var i = 0; i < items.content.length && !hasStyleOrScript; i++) { var item = items.content[i], match;