Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix linkedin regexes #18

Closed
wants to merge 3 commits into from
Closed

fix linkedin regexes #18

wants to merge 3 commits into from

Conversation

Ronserruya
Copy link

Closes #17

Tested this on a list of a few thousands of user links, hope this helps :)

@Ronserruya Ronserruya marked this pull request as draft May 4, 2020 14:31
@Ronserruya Ronserruya marked this pull request as ready for review May 4, 2020 14:59
RegEx for public URLs.

http(s)?:\/\/([\w]+\.)?linkedin\.com\/pub\/[A-z0-9_-]+(\/[A-z0-9]+){3}\/?
http(s)?:\/\/([\w]+\.)?linkedin\.com\/pub\/[\w\-À-ÿ%]+(\/\w+){3}(\/.*)?
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Ronserruya, thanks for the PR. Could you help me understand the À-ÿ part?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, \w gets all English letters, but you need À-ÿ to catch accented letters, that's for people with these letters in their name, for example

www.linkedin.com/in/mark-simon-müller-81a83743

@lorey
Copy link
Owner

lorey commented May 11, 2020

Hey @Ronserruya, sorry I changed the structure but it seemed right to structure the data and add tests. Could you please add your regexes to the regexes.json file or just post some (anoymized) sample URLs here, so I can add and verify them myself?

Tried to find examples with google but couldn't find any, sorry!

@lorey
Copy link
Owner

lorey commented May 11, 2020

Closing this for now, feel free to create a new issue or PR! 💯

@lorey lorey closed this May 11, 2020
@Ronserruya
Copy link
Author

No problem, I'll get to it in the next few days :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix linkedin recruiter and add /talent url regex
2 participants