Skip to content

Commit

Permalink
Merge 9e491cc into 0876f34
Browse files Browse the repository at this point in the history
  • Loading branch information
nabetaro committed Dec 21, 2019
2 parents 0876f34 + 9e491cc commit eaa2c8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qed/country-specific.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ in Tokyo
japan.normalize("03 1234 5634").assert == '0312345634'
japan.normalize("03-1234-5634").assert == '0312345634'
japan.normalize("03(1234)5634").assert == '0312345634'
japan.normalize("+81 3-1234-5634").assert == '0312345634'
japan.normalize("Hello 03-1234-5634").assert == '0312345634'

japan.assert.plausible?('0312345678')
Expand All @@ -60,6 +61,7 @@ in Shihoro Town, Hokkaido
japan.normalize("01564 5 2211").assert == '0156452211'
japan.normalize("01564-5-2211").assert == '0156452211'
japan.normalize("01564(5)2211").assert == '0156452211'
japan.normalize("+81 1564-5-2211").assert == '0156452211'
japan.normalize("Hello 01564-5-2211 ").assert == '0156452211'

japan.assert.plausible?('0156452211')
Expand Down
5 changes: 5 additions & 0 deletions qed/normalize.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ Handles a number with extra 0.

Phony.normalize('36 0630245506').assert == '360630245506'

#### Japan

Phony.normalize('+81 3-1234-5634').assert == '81312345634'
Phony.normalize('03-1234-5634', cc: '81').assert == '81312345634'

#### Lithuania

Phony.normalize('370 8 5 1234567').assert == '370851234567'
Expand Down

0 comments on commit eaa2c8a

Please sign in to comment.