Skip to content

Commit

Permalink
include '-' in example whitenoise regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Niicck committed Oct 26, 2023
1 parent 4108c13 commit aa7cde5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ import re
def immutable_file_test(path, url):
# Match filename with 12 hex digits before the extension
# e.g. app.db8f2edc0c8a.js
return re.match(r"^.+\.[0-9a-f]{8,12}\..+$", url)
return re.match(r"^.+[\.\-][0-9a-f]{8,12}\..+$", url)


WHITENOISE_IMMUTABLE_FILE_TEST = immutable_file_test
Expand Down

0 comments on commit aa7cde5

Please sign in to comment.