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.
20 lines
616 B
JavaScript
20 lines
616 B
JavaScript
// This is a legacy function.
|
|
// Use `findNumbers()` instead.
|
|
|
|
import _findPhoneNumbers, { searchPhoneNumbers as _searchPhoneNumbers } from './findPhoneNumbersInitialImplementation.js'
|
|
import normalizeArguments from '../normalizeArguments.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)
|
|
} |