ccashfrontend/views/node_modules/libphonenumber-js/source/findNumbers_.js
2021-06-18 09:20:09 +10:00

10 lines
No EOL
292 B
JavaScript

import PhoneNumberMatcher from './PhoneNumberMatcher'
export default function findNumbers(text, options, metadata) {
const matcher = new PhoneNumberMatcher(text, options, metadata)
const results = []
while (matcher.hasNext()) {
results.push(matcher.next())
}
return results
}