mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-01 19:17:41 +03:00
make regex valid for all languages
This commit is contained in:
parent
4652f0d94d
commit
cdef5d76d7
@ -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"^[\p{L}\p{N}\s'_-]{1,50}$"
|
||||
|
||||
try:
|
||||
sanitized_old_name = sanitize_filename(old_name, replacement_text="_")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user