Skip to content

Commit

Permalink
fix: check prefix starts and ends with / (#238)
Browse files Browse the repository at this point in the history
Bug was introduced in #234 64ed88f
  • Loading branch information
drts01 authored May 29, 2024
1 parent 64ed88f commit 9b0cc7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notfound/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def validate_configs(app, *args, **kwargs):
notfound_urls_prefix != default
and notfound_urls_prefix
and not (
notfound_urls_prefix.startswith("/") or notfound_urls_prefix.endswith("/")
notfound_urls_prefix.startswith("/") and notfound_urls_prefix.endswith("/")
)
):
message = 'notfound_urls_prefix should start and end with "/" (slash)'
Expand Down

0 comments on commit 9b0cc7d

Please sign in to comment.