Fix flag
This commit is contained in:
parent
9709bbf62f
commit
6b8f214cf9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user