Bump intl-tel-input

This commit is contained in:
johnnyq
2026-08-26 13:14:32 -04:00
parent 3d9a41bec4
commit cfafc385f0
219 changed files with 10122 additions and 26624 deletions

View File

@@ -0,0 +1,10 @@
//* Extract the numeric digits from the given string (\D matches any non-digit).
export const getNumeric = (s: string): string => s.replace(/\D/g, "");
//* Normalise string: turns "Réunion" into "Reunion".
//* from https://stackoverflow.com/a/37511463
export const normaliseString = (s: string = ""): string =>
s
.normalize("NFD")
.replace(/[\u0300-\u036f]/g, "")
.toLowerCase();