Skip to content

Commit 73bcb9d

Browse files
committed
🐛(backend) fix unescaped dot in regex pattern
The dot before (?P<extension>...) was not escaped and matched any character instead of a literal period. Escape it to align with MEDIA_STORAGE_URL_PATTERN, which correctly uses \. for the file extension separator.
1 parent f3e90c3 commit 73bcb9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/core/enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# pylint: disable=line-too-long
1616
RECORDING_STORAGE_URL_PATTERN = re.compile(
17-
f"{settings.MEDIA_URL:s}{settings.RECORDING_OUTPUT_FOLDER}/(?P<recording_id>{UUID_REGEX:s}).(?P<extension>{FILE_EXT_REGEX:s})"
17+
rf"{settings.MEDIA_URL:s}{settings.RECORDING_OUTPUT_FOLDER}/(?P<recording_id>{UUID_REGEX:s})\.(?P<extension>{FILE_EXT_REGEX:s})"
1818
)
1919

2020
MEDIA_STORAGE_URL_PATTERN = re.compile(

0 commit comments

Comments
 (0)