Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve
FACEBOOK_REGEX
to match older style page URLs (#2650)
Older Facebook URLs could be formatted like this: `https://www.facebook.com/some-profile-1234` This package currently incorrectly parses the URL as: `https://www.facebook.com/some` The REGEX for this package does not match the `-` character. These URLs have been deprecated, and Facebook will redirect these older style URLs to their newer style. We should still match these older style URLs as they are indeed valid, albeit old. I've added 2 tests to cover these URL patterns, happy to adjust to any feedback. Closes #2216
- Loading branch information