Skip to content

Commit

Permalink
Merge pull request #96 from Niicck/whitenoise-fix
Browse files Browse the repository at this point in the history
include '-' in example whitenoise regex
  • Loading branch information
thijskramer authored Nov 25, 2023
2 parents 0772000 + aa7cde5 commit 751f223
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 @@ -374,7 +374,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 751f223

Please sign in to comment.