Skip to content

Commit d7e417d

Browse files
authored
Fix "Various fixes to byte / bytearray search" (#55734)
Fixes the conflict between #54593 and #54579 `_search` returns `nothing` instead of zero as a sentinal in #54579
1 parent c6c449c commit d7e417d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/strings/search.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function findall(
178178
i = firstindex(s)
179179
while true
180180
i = _search(s, byte, i)
181-
iszero(i) && return result
181+
isnothing(i) && return result
182182
i += 1
183183
index = i - ncu
184184
# If the char is invalid, it's possible that its first byte is

0 commit comments

Comments
 (0)