mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-09-19 23:11:22 +00:00
Set more flags in regex
This commit is contained in:
parent
d293ec8d76
commit
ba50934005
@ -106,7 +106,7 @@ module Tartrazine
|
|||||||
flags |= LibPCRE2::DOTALL if dotall
|
flags |= LibPCRE2::DOTALL if dotall
|
||||||
flags |= LibPCRE2::CASELESS if ignorecase
|
flags |= LibPCRE2::CASELESS if ignorecase
|
||||||
flags |= LibPCRE2::ANCHORED if anchored
|
flags |= LibPCRE2::ANCHORED if anchored
|
||||||
flags |= LibPCRE2::NO_UTF_CHECK | LibPCRE2::JIT_COMPLETE
|
flags |= LibPCRE2::NO_UTF_CHECK | LibPCRE2::JIT_PARTIAL_SOFT
|
||||||
@re = Regex::PCRE2.compile(pattern, flags) do |error_message|
|
@re = Regex::PCRE2.compile(pattern, flags) do |error_message|
|
||||||
raise Exception.new(error_message)
|
raise Exception.new(error_message)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user