]> git.kaiwu.me - njs.git/commit
Added support of regular expressions not supported directly by PCRE2.
authorDmitry Volyntsev <xeioex@nginx.com>
Sat, 20 May 2023 03:22:14 +0000 (20:22 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Sat, 20 May 2023 03:22:14 +0000 (20:22 -0700)
commitb9f5e44c683d50608a6f27bbc1e11cdcf00fb2f6
treeb7cf5b8a48450a6b992e771f9b75cbcaee28b33b
parent7dcf6d936d97f6d451abc2eeac0026b4f12657c5
Added support of regular expressions not supported directly by PCRE2.

The following patterns were fixed:
    `[]` - matches nothing, previously was rejected as invalid expression.
    `[^]` - matched any character, unlike `.` this syntax matches new
        line, previously was rejected as invalid expression.
    `++`, `*+`, `?+` - are rejected now, whereas in PCRE2 they are considered
        valid possessive quantifiers.
external/njs_regex.c
src/njs_regexp.c
src/test/njs_unit_test.c