poly-js-utils
Advanced tools
Comparing version 1.2.4 to 1.2.5
{ | ||
"name": "poly-js-utils", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "Common client-side tools used in HSS Sites themes and locators.", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -71,4 +71,8 @@ /****************************/ | ||
} | ||
else if (extensionPosition !== -1) { | ||
var noExtPhone = phone.substring(0, phone.lastIndexOf('x')); | ||
return noExtPhone + extension; | ||
} | ||
else { | ||
return phone + extension; | ||
return phone; | ||
} | ||
@@ -75,0 +79,0 @@ } |
92947
2001