srbhr / Resume-Matcher

Resume Matcher is an open source, free tool to improve your resume. It works by using language models to compare and rank resumes with job descriptions.
https://www.resumematcher.fyi/
Apache License 2.0
4.7k stars 1.85k forks source link

Modifications needed in extracting phone numbers from resume text. #221

Open pragati2112 opened 7 months ago

pragati2112 commented 7 months ago

Issue Title

Modifications needed in extracting phone numbers from resume text

Type

Description

Tried to extract 10 digit phone number (including country codes) by given regex in extractor.py file but it's is not identifying any.

Expected Behavior

It should pick 10 digit phone number (with or without country codes ) text.

Possible Solution (if you have any in mind)

I modified the regex and replaced with existing. Modified regex---> r'[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}' I removed "^" and "$" characters from start and end of the regex. Now it's working properly.

srbhr commented 7 months ago

Thanks for the fix @pragati2112 , can you create a PR for this fix?

pragati2112 commented 7 months ago

@srbhr Sure.