Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/node_modules.5/libphonenumber-js/source/
Upload File :
Current File : /home/infinitibizsol/.trash/node_modules.5/libphonenumber-js/source/searchPhoneNumbersInText.js

import PhoneNumberMatcher from './PhoneNumberMatcher.js'
import normalizeArguments from './normalizeArguments.js'

export default function searchPhoneNumbersInText() {
	const { text, options, metadata } = normalizeArguments(arguments)
	const matcher = new PhoneNumberMatcher(text, { ...options, v2: true }, metadata)
	return  {
		[Symbol.iterator]() {
			return {
	    		next: () => {
	    			if (matcher.hasNext()) {
						return {
							done: false,
							value: matcher.next()
						}
					}
					return {
						done: true
					}
	    		}
			}
		}
	}
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists