mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-01 19:17:41 +03:00
add apostrophe to valid character for backend face rename regex
This commit is contained in:
parent
833eca6ab2
commit
54a5084940
@ -243,7 +243,7 @@ class EmbeddingsContext:
|
||||
)
|
||||
|
||||
def rename_face(self, old_name: str, new_name: str) -> None:
|
||||
valid_name_pattern = r"^[a-zA-Z0-9\s_-]{1,50}$"
|
||||
valid_name_pattern = r"^[a-zA-Z0-9\s'_-]{1,50}$"
|
||||
|
||||
try:
|
||||
sanitized_old_name = sanitize_filename(old_name, replacement_text="_")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user