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

Commit 52a9886

Browse files
committed
Merge pull request #170 from twbs/withStartIndices
enable withStartIndices option in Cheerio's HTML parser
2 parents df50dbf + 78bc337 commit 52a9886

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)