phones
Advanced tools
Comparing version 1.0.1 to 2.0.0
@@ -12,3 +12,3 @@ 'use strict' | ||
exports.format = function format (phone, separator) { | ||
separator = separator == null ? ' ' : separator | ||
separator = separator == null ? '-' : separator | ||
@@ -15,0 +15,0 @@ var country = phone.charAt(0) === '1' |
{ | ||
"name": "phones", | ||
"main": "index.js", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "Parse, format, and validate US phone numbers", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -53,3 +53,3 @@ # phones [![Build Status](https://travis-ci.org/bendrucker/phones.svg?branch=master)](https://travis-ci.org/bendrucker/phones) | ||
Type: `string` | ||
Default: `' '` | ||
Default: `'-'` | ||
@@ -56,0 +56,0 @@ #### `phones.validate(phone)` -> `boolean` |