mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-17 11:31:09 -05:00
Fixed Phone Number Regex
This commit is contained in:
@@ -21,7 +21,7 @@ function validateInput(value: string, questionType: string, required: boolean):
|
||||
const numberPattern = /^[0-9]*$/;
|
||||
return numberPattern.test(value);
|
||||
case "phone":
|
||||
const phonePattern = /^\+?[0-9]+$/;
|
||||
const phonePattern = /^\+[0-9]+$/;
|
||||
return phonePattern.test(value);
|
||||
default:
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user