Skip to content

Commit

Permalink
fix: Extend regex in Linkedin Field to support LinkedIn school URL
Browse files Browse the repository at this point in the history
  • Loading branch information
EltonGohJH committed Feb 27, 2024
1 parent 8b39e53 commit d6f66a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const getDisplayValueByUrlType = ({
}: getUrlDisplayValueByUrlTypeProps) => {
if (type === 'linkedin') {
const matches = href.match(
/(?:https?:\/\/)?(?:www.)?linkedin.com\/(?:in|company)\/(.*)/,
/(?:https?:\/\/)?(?:www.)?linkedin.com\/(?:in|company|school)\/(.*)/,
);
if (matches && matches[1]) {
return matches[1];
Expand Down

0 comments on commit d6f66a9

Please sign in to comment.