Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
Improve Japanese number format
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesreggio committed Jun 25, 2015
1 parent 86b32f7 commit c66ea75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jquery.mobilePhoneNumber.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ formats =
format : '+... . .... ....',
'+81' :
country : 'JP',
format : '+.. ...-...-....',
format : '+.. ..-....-....',
nationalPrefix: '0',
'+254' :
country : 'KE',
Expand Down
2 changes: 1 addition & 1 deletion test/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe 'jquery.mobilePhoneNumber', ->
$phone = createInput().val('').mobilePhoneNumber({ defaultPrefix: '+81' })

type $phone, '08043691337'
assert.equal $phone.val(), '0804-369-1337'
assert.equal $phone.val(), '080-4369-1337'

it 'should correctly format BE phone', ->
$phone = createInput().val('').mobilePhoneNumber()
Expand Down

0 comments on commit c66ea75

Please sign in to comment.