Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit 78bc337

Browse files
committed
enable withStartIndices option in Cheerio's HTML parser
1 parent df50dbf commit 78bc337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootlint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ var semver = require('semver');
774774
* @returns {undefined} Nothing
775775
*/
776776
exports.lintHtml = function (html, reporter, disabledIds) {
777-
var $ = cheerio.load(html);
777+
var $ = cheerio.load(html, {withStartIndices: true});
778778
this._lint($, reporter, disabledIds);
779779
};
780780
}

0 commit comments

Comments
 (0)