UNPKG

resume-parser-mcp

Version:

To install dependencies:

9 lines (8 loc) 313 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.extractPhone = extractPhone; function extractPhone(text) { const phoneRegex = /(\+?\d{1,3}[-.\s]?)?\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}/g; const matches = text.match(phoneRegex); return matches ? matches[0] : null; }