From 2cd52f86565a3f2a041a15ff8950a53e04364be5 Mon Sep 17 00:00:00 2001 From: Rafael Fourquet Date: Thu, 4 Apr 2019 16:45:46 +0200 Subject: [PATCH] remove useless operation --- base/regex.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/regex.jl b/base/regex.jl index a19f6110a357a..00234ade2fe1a 100644 --- a/base/regex.jl +++ b/base/regex.jl @@ -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)