Skip to content

Commit

Permalink
Supports 060 numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
black-trooper committed May 8, 2024
1 parent cfe44e9 commit 72269db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,11 @@ const otherPhones: OtherPhone[] = [
key: '050',
digit: 4
},
{
key: '060',
digit: 4,
strictDigit: 3
},
{
key: '070',
digit: 4,
Expand Down
2 changes: 2 additions & 0 deletions test/blah.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ describe('test-splitter', function () {
expect(format('020xxxxyyyy', true)).toEqual('020-xxx-xyyyy')
expect(format('0200xxxyyyy')).toEqual('020-0xxx-yyyy')
expect(format('0200xxxyyyy', true)).toEqual('020-0xx-xyyyy')
expect(format('060xxxxyyyy')).toEqual('060-xxxx-yyyy')
expect(format('060xxxxyyyy', true)).toEqual('060-xxx-xyyyy')
expect(format('070xxxxyyyy')).toEqual('070-xxxx-yyyy')
expect(format('070xxxxyyyy', true)).toEqual('070-xxx-xyyyy')
expect(format('080xxxxyyyy')).toEqual('080-xxxx-yyyy')
Expand Down

0 comments on commit 72269db

Please sign in to comment.