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 Nov 18, 2024
1 parent 48b2ec2 commit 1e00251
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 @@ -1147,7 +1147,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 1e00251

Please sign in to comment.