feat: use extended regex
This commit is contained in:
parent
bbfea5876e
commit
5d0cafbc27
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue