feat: phone regex fix
This commit is contained in:
		
							
								
								
									
										3
									
								
								external/billing/schemas.py
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								external/billing/schemas.py
									
									
									
									
										vendored
									
									
								
							@@ -35,7 +35,8 @@ class CreateBillRequestSchema(BaseSchema):
 | 
			
		||||
    def payer_phone_validator(cls, phone: str) -> str:
 | 
			
		||||
        if phone is None:
 | 
			
		||||
            return None
 | 
			
		||||
 | 
			
		||||
        phone = phone.replace('-', '')
 | 
			
		||||
        phone = phone.replace(' ', '')
 | 
			
		||||
        if not phone.startswith("+"):
 | 
			
		||||
            phone = f"+{phone}"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user