mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
use PCRE syntax instead of the beautiful new (?i ...) syntax
This commit is contained in:
parent
726424f371
commit
85c4b0d285
6 changed files with 12 additions and 14 deletions
|
@ -104,7 +104,7 @@ void Specific_RE_Matcher::AddPat(const char* new_pat,
|
|||
|
||||
void Specific_RE_Matcher::MakeCaseInsensitive()
|
||||
{
|
||||
const char fmt[] = "(+i %s)";
|
||||
const char fmt[] = "(?i:%s)";
|
||||
int n = strlen(pattern_text) + strlen(fmt);
|
||||
|
||||
char* s = new char[n + 5 /* slop */];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue