Open nsbarsukov opened 5 days ago
https://taiga-ui.dev/components/input-phone/API
+
+ 7 (123) 456-78-90
Expected: +7 (123) 456-78-90 Actual: +7 (712) 345-67-89
+7 (123) 456-78-90
+7 (712) 345-67-89
Improve this RegExp (add some \s?) https://github.com/taiga-family/taiga-ui/blob/b4f4f32b43e78a47aa66cdaa6ed411c5ccb02f71/projects/legacy/components/input-phone/utils/complete-phone-insertion-preprocessor.ts#L21-L27
\s?
4.12.0
Chrome
macOS
I will take it
Reproduction url
https://taiga-ui.dev/components/input-phone/API
Description
+
sign)Expected:
+7 (123) 456-78-90
Actual:+7 (712) 345-67-89
Possible solution
Improve this RegExp (add some
\s?
) https://github.com/taiga-family/taiga-ui/blob/b4f4f32b43e78a47aa66cdaa6ed411c5ccb02f71/projects/legacy/components/input-phone/utils/complete-phone-insertion-preprocessor.ts#L21-L27Taiga UI version
4.12.0
Browser Used
Chrome
OS Used
macOS