feat: use extended regex

This commit is contained in:
Jef Roosens 2023-05-31 11:49:49 +02:00
parent bbfea5876e
commit 5d0cafbc27
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
2 changed files with 4 additions and 4 deletions

View file

@ -70,7 +70,7 @@ void http_loop_run(event_loop *el, int port) {
if (route->type == http_route_regex) {
regex_t *r = calloc(sizeof(regex_t), 1);
if (regcomp(r, route->path, 0) != 0) {
if (regcomp(r, route->path, REG_EXTENDED) != 0) {
critical(1, "RegEx expression '%s' failed to compile", route->path);
}