mirror of
				https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
				synced 2025-11-04 00:26:07 +00:00 
			
		
		
		
	marked regex with 'r'
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user