findPhoneNumbers.js 919 B

12345678910111213141516171819202122232425
  1. // This is a legacy function.
  2. // Use `findNumbers()` instead.
  3. import _findPhoneNumbers, { searchPhoneNumbers as _searchPhoneNumbers } from './findPhoneNumbersInitialImplementation.js';
  4. import normalizeArguments from '../normalizeArguments.js';
  5. export default function findPhoneNumbers() {
  6. var _normalizeArguments = normalizeArguments(arguments),
  7. text = _normalizeArguments.text,
  8. options = _normalizeArguments.options,
  9. metadata = _normalizeArguments.metadata;
  10. return _findPhoneNumbers(text, options, metadata);
  11. }
  12. /**
  13. * @return ES6 `for ... of` iterator.
  14. */
  15. export function searchPhoneNumbers() {
  16. var _normalizeArguments2 = normalizeArguments(arguments),
  17. text = _normalizeArguments2.text,
  18. options = _normalizeArguments2.options,
  19. metadata = _normalizeArguments2.metadata;
  20. return _searchPhoneNumbers(text, options, metadata);
  21. }
  22. //# sourceMappingURL=findPhoneNumbers.js.map