Skip to content

Commit

Permalink
fix(server): explicitly capture 8 characters for dash-less ISO 8601
Browse files Browse the repository at this point in the history
This should make it harder to submit an invalid date. All dates must be
in ISO 8601 format without the dashes, like 20231130.
  • Loading branch information
ericswpark committed Nov 30, 2023
1 parent 8a8dcf6 commit 3f9bf1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
),
"SHIPPER_FILE_NAME_FORMAT": (
"[A-Za-z]+-(?P<version>[a-z0-9.]+)-(?P<codename>[A-Za-z0-9_]+)-OFFICIAL-("
"?P<variant>[a-z]+)-(?P<date>[0-9]+).zip",
"?P<variant>[a-z]+)-(?P<date>[0-9]{8}).zip",
"Regex pattern to use when parsing file names of uploaded artifacts. The "
"pattern must include the following four named match groups; otherwise an "
"exception will occur during uploading: `version', `codename`, `variant`, "
Expand Down

0 comments on commit 3f9bf1a

Please sign in to comment.