Frontmatter
| id | 4386 |
| title | form.field.Phone: inputPattern edge cases |
| state | Closed |
| labels | enhancementstale |
| assignees | [] |
| createdAt | May 4, 2023, 9:44 PM |
| updatedAt | Sep 12, 2024, 4:29 AM |
| githubUrl | https://github.com/neomjs/neo/issues/4386 |
| author | tobiu |
| commentsCount | 4 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Sep 12, 2024, 4:29 AM |
form.field.Phone: inputPattern edge cases

ki1pen
May 5, 2023, 3:45 PM
@tobiu Does it need to accept something like this? +(123) (123) 456-7-890 (+123) 456 789 +(12-3) 456 789 +123 456 (789)

deniztoprak
May 7, 2023, 11:07 PM
It's hard to find one-size-fits-all pattern to validate tel inputs. There are some good insights here:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/tel#validation
There are people arguing that phone number validation is useless:
And some specialized libraries which can inspire:
https://github.com/google/libphonenumber
@github-actions - 2024-08-29T02:27:25Z
This issue is stale because it has been open for 90 days with no activity.
- 2024-08-29T02:27:25Z @github-actions added the
stalelabel
@github-actions - 2024-09-12T02:29:19Z
This issue was closed because it has been inactive for 14 days since being marked as stale.
- 2024-09-12T02:29:19Z @github-actions closed this issue
@ki1pen @deniztoprak
the new inputPattern regex does not support the following format:
+49 (151) 1234 567so we should polish it more. open for ideas :)