You can not 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
			
		
		
			
		
	
	
					20 lines
				
				616 B
			| 
											3 years ago
										 | // 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) | ||
|  | } |