Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PhoneNumberMatcher #180

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e9503e5
Added first version of phone matcher port
Mar 23, 2021
b286ba7
Added first version of phone matcher port
Mar 23, 2021
7a5e4a4
Fix module name
Mar 23, 2021
50bf9c3
Update go version
Mar 23, 2021
314f08e
Escape parentheses
Mar 23, 2021
c9c99eb
Escape parentheses
Mar 23, 2021
3bebb51
Fix endless loop
Mar 23, 2021
f6fd65d
Fix wrong regex
Mar 23, 2021
b6a7ec4
Fix new endless loop
Mar 23, 2021
44ad373
Export Number
Mar 23, 2021
b8e3569
Remove rune conversion
Mar 23, 2021
67b632f
Fix nil value check
Mar 23, 2021
877d5d5
Fix conditional logic
Mar 23, 2021
8516f17
Fix infinite loop
Mar 23, 2021
53888a6
Ignore invalid utf-8 chars
Mar 23, 2021
3a248d7
Fix unintended infinite loop at extractInnerMatch
Mar 23, 2021
213aaba
Fix unintended infinite loop at extractInnerMatch
Mar 23, 2021
6c13f2b
Escape plus sign
Mar 23, 2021
9e8f8e2
Get last char, instead of next char after candidate
Mar 23, 2021
2a3bf65
Catch + before numbers
Mar 23, 2021
3989f2d
Typo
Mar 23, 2021
0a638d7
Fixed logic error
Mar 25, 2021
89d8133
Fix wrong offset
Mar 25, 2021
a8bd4e6
Remove valid rune checking
Mar 25, 2021
c11d83c
Added comments
Mar 25, 2021
a46b374
Reset unused files
Mar 25, 2021
1832dc6
Set mod to nyaruka
Mar 25, 2021
30bc715
Set go version to 1.13
Mar 25, 2021
7592927
Ran go mod tidy, reset cmd/phonnumbers/go.mod
Mar 26, 2021
116bfc6
Merge branch 'nyaruka:main' into main
mauritsderuiter95 Jul 12, 2021
1266270
Merge branch 'nyaruka:main' into main
mauritsderuiter95 Nov 23, 2021
0e92087
allow gradual non-breaking releases
SamiKammoun Jul 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ import (
"unicode"
)

type PhoneNumberMatcher struct {
}

func NewPhoneNumberMatcher(seq string) *PhoneNumberMatcher {
// TODO(ttacon): to be implemented
return nil
}

func ContainsOnlyValidXChars(number *PhoneNumber, candidate string) bool {
// The characters 'x' and 'X' can be (1) a carrier code, in which
// case they always precede the national significant number or (2)
Expand Down
Loading
Loading