You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
563 B
JavaScript
18 lines
563 B
JavaScript
import PhoneNumberMatcher from '../PhoneNumberMatcher.js';
|
|
import normalizeArguments from '../normalizeArguments.js';
|
|
export default function findNumbers() {
|
|
var _normalizeArguments = normalizeArguments(arguments),
|
|
text = _normalizeArguments.text,
|
|
options = _normalizeArguments.options,
|
|
metadata = _normalizeArguments.metadata;
|
|
|
|
var matcher = new PhoneNumberMatcher(text, options, metadata);
|
|
var results = [];
|
|
|
|
while (matcher.hasNext()) {
|
|
results.push(matcher.next());
|
|
}
|
|
|
|
return results;
|
|
}
|
|
//# sourceMappingURL=findNumbers.js.map
|