From 1b6f142cb58b913636f54ae90619ff6f3b9f5cf6 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Fri, 22 Nov 2024 15:07:54 +0100 Subject: [PATCH] marked regex with 'r' --- app/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/middleware.py b/app/middleware.py index 4f66ced..e765f3b 100644 --- a/app/middleware.py +++ b/app/middleware.py @@ -11,7 +11,7 @@ logger = logging.getLogger(__name__) class PatchMalformedJsonMiddleware(BaseHTTPMiddleware): # see oscar.krause/fastapi-dls#1 - REGEX = '(\"mac_address_list\"\:\s?\[)([\w\d])' + REGEX = r'(\"mac_address_list\"\:\s?\[)([\w\d])' def __init__(self, app, enabled: bool): super().__init__(app)