Skip to content

[TEXT-241] TextStringBuilder.lastIndexOf("") and StrBuilder.lastIndexOf("") return incorrect index for empty string (size - 1 instead of size) - #763

Merged
garydgregory merged 3 commits into
apache:masterfrom
kzhunmax:TEXT-241-lastindexof-empty-search-strings
Jul 30, 2026
Merged

[TEXT-241] TextStringBuilder.lastIndexOf("") and StrBuilder.lastIndexOf("") return incorrect index for empty string (size - 1 instead of size)#763
garydgregory merged 3 commits into
apache:masterfrom
kzhunmax:TEXT-241-lastindexof-empty-search-strings

refactor: replace conditional with Math.min

1c12400
Select commit
Loading
Failed to load commit list.
Sign in for the full log view