fix: Extend regex in Linkedin Field to support LinkedIn school URL (#4198)
This commit is contained in:
committed by
GitHub
parent
a19de71fad
commit
e0b2cc7651
@ -11,7 +11,7 @@ export const getDisplayValueByUrlType = ({
|
|||||||
}: getUrlDisplayValueByUrlTypeProps) => {
|
}: getUrlDisplayValueByUrlTypeProps) => {
|
||||||
if (type === 'linkedin') {
|
if (type === 'linkedin') {
|
||||||
const matches = href.match(
|
const matches = href.match(
|
||||||
/(?:https?:\/\/)?(?:www.)?linkedin.com\/(?:in|company)\/(.*)/,
|
/(?:https?:\/\/)?(?:www.)?linkedin.com\/(?:in|company|school)\/(.*)/,
|
||||||
);
|
);
|
||||||
if (matches && matches[1]) {
|
if (matches && matches[1]) {
|
||||||
return matches[1];
|
return matches[1];
|
||||||
|
|||||||
Reference in New Issue
Block a user