diff --git a/ack b/ack index e66f73a0..852ec1c5 100644 --- a/ack +++ b/ack @@ -331,7 +331,7 @@ sub build_regex { $str = "(?i)$str"; } - my $re = eval { qr/$str/ }; + my $re = eval { qr/$str/m }; if ( !$re ) { die "Invalid regex '$str':\n $@"; }