Skip to content

Commit

Permalink
remove useless operation
Browse files Browse the repository at this point in the history
  • Loading branch information
rfourquet committed Apr 4, 2019
1 parent cd23465 commit 2cd52f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/regex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ function *(r1::Union{Regex,AbstractString,AbstractChar}, rs::Union{Regex,Abstrac
r.compile_options & ~mask == compile_opts ||
throw(ArgumentError("cannot multiply regexes: incompatible options"))
end
shared &= r.compile_options & mask
shared &= r.compile_options
end
unshared = mask & ~shared
Regex(string(unwrap_string(r1, unshared), unwrap_string.(rs, Ref(unshared))...), compile_opts | shared, match_opts)
Expand Down

0 comments on commit 2cd52f8

Please sign in to comment.