Partially revert 4ba011266843857bbd3201e5b925a47e88e1808f

Add back leading operator enforcement.
This commit is contained in:
Markus Mäkelä
2018-09-20 15:26:51 +03:00
parent d8d0b1a29c
commit 71ffef5708
95 changed files with 1395 additions and 1392 deletions

View File

@ -4626,13 +4626,13 @@ static pcre2_code* compile_regex_string(const char* regex_string,
int errorcode = -1;
PCRE2_SIZE error_offset = -1;
uint32_t capcount = 0;
pcre2_code* machine
= pcre2_compile((PCRE2_SPTR) regex_string,
PCRE2_ZERO_TERMINATED,
options,
&errorcode,
&error_offset,
NULL);
pcre2_code* machine =
pcre2_compile((PCRE2_SPTR) regex_string,
PCRE2_ZERO_TERMINATED,
options,
&errorcode,
&error_offset,
NULL);
if (machine)
{
if (jit_enabled)