Skip to content

Commit

Permalink
Replace substring check by individual chars check
Browse files Browse the repository at this point in the history
  • Loading branch information
Telroshan committed Dec 12, 2024
1 parent f66f77b commit c3b1c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/htmx.js
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ var htmx = (function() {
}
if (char === '<') {
chevronsCount++
} else if (selector.substring(i, i + 2) === '/>') {
} else if (char === '/' && i < selector.length - 1 && selector[i + 1] === '>') {
chevronsCount--
}
}
Expand Down

0 comments on commit c3b1c59

Please sign in to comment.