Skip to content

Commit db83efd

Browse files
authored
fix an issue found by JET (#28)
1 parent f7bbeb6 commit db83efd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/verify_host.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ end
8080
const MATCH_ANY_RE = r""
8181
const MATCH_NONE_RE = r"$.^"
8282

83+
# TODO: What to do when `env_host_pattern_regex` returns `nothing`?
8384
env_host_pattern_match(var::AbstractString, host::AbstractString) =
84-
occursin(env_host_pattern_regex(var), host)
85+
occursin(env_host_pattern_regex(var)::Regex, host)
8586
env_host_pattern_match(var::AbstractString, host::Nothing) =
8687
env_host_pattern_regex(var) === MATCH_ANY_RE
8788

0 commit comments

Comments
 (0)