Skip to content

Commit af53c9a

Browse files
committed
Replace search with in for v1.x
1 parent 71b4011 commit af53c9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/build.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function packword(inpvec::Vector, wrdmap, wrd_vec, wrd_dict)
157157
else
158158
str = wrd_vec[val16]
159159
!isempty(out) && (prevw < 0x26 || str[1] == '-') && push!(out, 0x00)
160-
if search(str, '-') != 0
160+
if '-' in str
161161
parts = split(str, '-')
162162
hasparts = true
163163
disp[] && print(parts)
@@ -208,7 +208,7 @@ function split_words(input::Vector{<:AbstractString})
208208
push!(wrd_frq, 0)
209209
push!(wrd_loc, i) # location first found (may be only location)
210210
wrd_dict[onewrd] = val
211-
if search(onewrd, '-') != 0
211+
if '-' in onewrd
212212
allparts = split(onewrd, '-')
213213
for part in allparts
214214
part == "" && continue

0 commit comments

Comments
 (0)