Skip to content

Commit

Permalink
Merge pull request #23 from JuliaString/spj/v7update
Browse files Browse the repository at this point in the history
Update for v0.7 change contains -> occursin
  • Loading branch information
ScottPJones authored Apr 5, 2018
2 parents 9018d57 + a1d6de5 commit d4be35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StrTables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export create_vector, sortsplit!, _contains, _replace, _codeunits, cvt_char, par
parse_hex(T, s) = @static VERSION < v"0.7.0-DEV" ? parse(T, s, 16) : parse(T, s, base=16)
cvt_char(s) = @static VERSION < v"0.7.0-DEV" ? convert(Vector{Char}, s) : Vector{Char}(s)
_codeunits(s) = Vector{UInt8}(@static VERSION < v"0.7.0-DEV" ? s : codeunits(s))
_contains(s, r) = @static VERSION < v"0.7.0-DEV" ? ismatch(r, s) : contains(s, r)
_contains(s, r) = @static VERSION < v"0.7.0-DEV" ? ismatch(r, s) : occursin(r, s)
_replace(s, p) = @static VERSION < v"0.7.0-DEV" ? replace(s, p.first, p.second) : replace(s, p)
create_vector(T, len) = @static VERSION < v"0.7.0-DEV" ? Vector{T}(len) : Vector{T}(undef, len)

Expand Down

0 comments on commit d4be35b

Please sign in to comment.