findNumbers.js 563 B

123456789101112131415161718
  1. import PhoneNumberMatcher from '../PhoneNumberMatcher.js';
  2. import normalizeArguments from '../normalizeArguments.js';
  3. export default function findNumbers() {
  4. var _normalizeArguments = normalizeArguments(arguments),
  5. text = _normalizeArguments.text,
  6. options = _normalizeArguments.options,
  7. metadata = _normalizeArguments.metadata;
  8. var matcher = new PhoneNumberMatcher(text, options, metadata);
  9. var results = [];
  10. while (matcher.hasNext()) {
  11. results.push(matcher.next());
  12. }
  13. return results;
  14. }
  15. //# sourceMappingURL=findNumbers.js.map