From aa7cde5c478f4aa2781294e622753af4f2fe76eb Mon Sep 17 00:00:00 2001 From: Niicck Date: Thu, 26 Oct 2023 11:48:55 -0700 Subject: [PATCH] include '-' in example whitenoise regex --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f2cbd81..220738a 100644 --- a/README.md +++ b/README.md @@ -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