20 lines
616 B
JavaScript
20 lines
616 B
JavaScript
// This is a legacy function.
|
|
// Use `findNumbers()` instead.
|
|
|
|
import _findPhoneNumbers, { searchPhoneNumbers as _searchPhoneNumbers } from './findPhoneNumbers_.js'
|
|
import { normalizeArguments } from './parsePhoneNumber.js'
|
|
|
|
export default function findPhoneNumbers()
|
|
{
|
|
const { text, options, metadata } = normalizeArguments(arguments)
|
|
return _findPhoneNumbers(text, options, metadata)
|
|
}
|
|
|
|
/**
|
|
* @return ES6 `for ... of` iterator.
|
|
*/
|
|
export function searchPhoneNumbers()
|
|
{
|
|
const { text, options, metadata } = normalizeArguments(arguments)
|
|
return _searchPhoneNumbers(text, options, metadata)
|
|
} |