frontello-datas-format
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -20,2 +20,4 @@ "use strict"; | ||
phone = phone.replace(/\D/g, ''); | ||
switch (this.phone.length) { | ||
@@ -43,3 +45,5 @@ case 10: | ||
return phone; | ||
phone = phone.replace(/ +/g, ' '); | ||
return phone.trim(); | ||
} | ||
@@ -46,0 +50,0 @@ |
{ | ||
"name": "frontello-datas-format", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "UI format", | ||
@@ -5,0 +5,0 @@ "main": "format.js", |
12292
514