diff --git a/src/cre2.cr b/src/cre2.cr index 593e136..29c0039 100644 --- a/src/cre2.cr +++ b/src/cre2.cr @@ -75,7 +75,7 @@ module CRe2 @failed = false @anchored = LibCre2::CRE2_UNANCHORED - def initialize(@pattern : String, @options : Options = Options::DEFAULT) + def initialize(@pattern : String, @options : Options = Options::None) @source = @pattern @re = Regex::PCRE2.compile(pattern, pcre2_options(@options)) do |error_message| raise Exception.new(error_message)