Skip to content

Commit f5076c0

Browse files
committed
Fixed a minor bug where it was possible for a zero-length split to be inserted at the end.
1 parent af3ff81 commit f5076c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.syntax.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ Syntax.Match.prototype.bisectAtOffsets = function(splits) {
332332
for (var i = 0; i < splits.length; i += 1) {
333333
var offset = splits[i];
334334

335-
if (offset < this.offset || offset > this.endOffset) {
335+
if (offset < this.offset || offset > this.endOffset || (offset - start) == 0) {
336336
break;
337337
}
338338

0 commit comments

Comments
 (0)