From 5cce17ab4ba8c894c2004d7f7d83d5b920348b30 Mon Sep 17 00:00:00 2001 From: liuhaihong <liuhaihong@youzan.com> Date: Fri, 17 Jul 2020 16:34:45 +0800 Subject: [PATCH] feat(Sku): complete the notes --- src/sku/components/SkuMessages.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sku/components/SkuMessages.js b/src/sku/components/SkuMessages.js index 9abffcdd4..fea96e6f4 100644 --- a/src/sku/components/SkuMessages.js +++ b/src/sku/components/SkuMessages.js @@ -111,7 +111,11 @@ export default createComponent({ } } }, - + /** + * The phone number copied from IOS mobile phone address book + * will add spaces and invisible Unicode characters + * which cannot pass the /^\d+$/ verification + */ getFormatter(message) { return function formatter(value) { if (message.type === 'mobile' || message.type === 'tel') {