- Prefijo v2: MCH - TRACEABILITY-MASTER.yml creado - Listo para integracion como submodulo Workspace: v2.0.0 | SIMCO: v4.0.0
12 lines
400 B
JavaScript
12 lines
400 B
JavaScript
import PhoneNumberMatcher from '../PhoneNumberMatcher.js'
|
|
import normalizeArguments from '../normalizeArguments.js'
|
|
|
|
export default function findNumbers() {
|
|
const { text, options, metadata } = normalizeArguments(arguments)
|
|
const matcher = new PhoneNumberMatcher(text, options, metadata)
|
|
const results = []
|
|
while (matcher.hasNext()) {
|
|
results.push(matcher.next())
|
|
}
|
|
return results
|
|
} |