From 84b9741fa6d8a5b93da3ed0e0005bd99b5380dfb Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Tue, 15 Mar 2016 11:04:00 -0700 Subject: [PATCH] fix(autolinker): Additional phone number parsing specs --- .../spec/autolinker-fixtures/strangephones-in.html | 7 +++++++ .../spec/autolinker-fixtures/strangephones-out.html | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 internal_packages/message-list/spec/autolinker-fixtures/strangephones-in.html create mode 100644 internal_packages/message-list/spec/autolinker-fixtures/strangephones-out.html diff --git a/internal_packages/message-list/spec/autolinker-fixtures/strangephones-in.html b/internal_packages/message-list/spec/autolinker-fixtures/strangephones-in.html new file mode 100644 index 000000000..ee859d4c9 --- /dev/null +++ b/internal_packages/message-list/spec/autolinker-fixtures/strangephones-in.html @@ -0,0 +1,7 @@ +Give us a call at 540-250-1231. Thanks! +Give us a call at 540 250 1231. Thanks! +Give us a call at +1 540 250 1231. Thanks! +Give us a call at 6641234567. Thanks! +Give us a call at 664 123 4567. Thanks! +Give us a call at (044) 664 123 4567. Thanks! +Give us a call at 0333 320 1030. Thanks! diff --git a/internal_packages/message-list/spec/autolinker-fixtures/strangephones-out.html b/internal_packages/message-list/spec/autolinker-fixtures/strangephones-out.html new file mode 100644 index 000000000..b0761774a --- /dev/null +++ b/internal_packages/message-list/spec/autolinker-fixtures/strangephones-out.html @@ -0,0 +1,7 @@ +Give us a call at 540-250-1231. Thanks! +Give us a call at 540 250 1231. Thanks! +Give us a call at +1 540 250 1231. Thanks! +Give us a call at 6641234567. Thanks! +Give us a call at 664 123 4567. Thanks! +Give us a call at (044) 664 123 4567. Thanks! +Give us a call at 0333 320 1030. Thanks!