mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-19 16:12:14 +11:00
10 lines
No EOL
292 B
JavaScript
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
|
|
} |