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)