Skip to content

Commit

Permalink
remove const as it is a breaking feature
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Nov 17, 2018
1 parent 7f097dc commit 294cee3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/parsers/ltx.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,21 @@ var SaxLtx = module.exports = function SaxLtx () {
if (state === STATE_TEXT) {
// if we're looping through text, fast-forward using indexOf to
// the next '<' character
const lt = data.indexOf('<', pos)
var lt = data.indexOf('<', pos)
if (lt !== -1 && pos !== lt) {
pos = lt
}
} else if (state === STATE_ATTR_VALUE) {
// if we're looping through an attribute, fast-forward using
// indexOf to the next end quote character
const quot = data.indexOf(attrQuoteChar, pos)
var quot = data.indexOf(attrQuoteChar, pos)
if (quot !== -1) {
pos = quot
}
} else if (state === STATE_IGNORE_COMMENT) {
// if we're looping through a comment, fast-forward using
// indexOf to the first end-comment character
const endcomment = data.indexOf('-->', pos)
var endcomment = data.indexOf('-->', pos)
if (endcomment !== -1) {
pos = endcomment + 2 // target the '>' character
}
Expand Down

0 comments on commit 294cee3

Please sign in to comment.