From bb8dc2d09c8d0a7ee5c043420dd8e8bd8f066d38 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Sun, 9 Oct 2022 11:25:39 -0600 Subject: [PATCH] Add regex for camera username and password --- frigate/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/const.py b/frigate/const.py index d339379bf..0626f88a9 100644 --- a/frigate/const.py +++ b/frigate/const.py @@ -9,4 +9,4 @@ PLUS_API_HOST = "https://api.frigate.video" # Regex Consts REGEX_CAMERA_NAME = "^[a-zA-Z0-9_-]+$" -REGEX_CAMERA_USER_PASS = "" +REGEX_CAMERA_USER_PASS = "[a-zA-Z0-9_-]+:[a-zA-Z0-9!$_-]+@"