Skip to content

Commit

Permalink
Events: Switch PCRE \d token to POSIX [0-9]
Browse files Browse the repository at this point in the history
The previous code worked in production, but this change is needed for it to also work in the Docker environment.
  • Loading branch information
iandunn committed Dec 22, 2023
1 parent b43aaa5 commit 34634ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function is_city_landing_page(): bool {
path REGEXP %s
LIMIT 1",
EVENTS_NETWORK_ID,
"^/$city/\d{4}/[a-z-]+/$"
"^/$city/[0-9]{4}/[a-z-]+/$"
) );

return ! empty( $sites );
Expand Down

0 comments on commit 34634ba

Please sign in to comment.