mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-19 16:12:14 +11:00
20 lines
No EOL
610 B
JavaScript
20 lines
No EOL
610 B
JavaScript
// This is a legacy function.
|
|
// Use `findNumbers()` instead.
|
|
|
|
import _findPhoneNumbers, { searchPhoneNumbers as _searchPhoneNumbers } from './findPhoneNumbers_'
|
|
import { normalizeArguments } from './parsePhoneNumber'
|
|
|
|
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)
|
|
} |