mirror of
https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
synced 2025-11-06 16:06:12 +00:00
marked regex with 'r'
This commit is contained in:
@@ -11,7 +11,7 @@ logger = logging.getLogger(__name__)
|
|||||||
class PatchMalformedJsonMiddleware(BaseHTTPMiddleware):
|
class PatchMalformedJsonMiddleware(BaseHTTPMiddleware):
|
||||||
# see oscar.krause/fastapi-dls#1
|
# 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):
|
def __init__(self, app, enabled: bool):
|
||||||
super().__init__(app)
|
super().__init__(app)
|
||||||
|
|||||||
Reference in New Issue
Block a user