fix: Extend regex in Linkedin Field to support LinkedIn school URL (#4198)

This commit is contained in:
Elton Goh Jun Hao
2024-02-28 17:19:41 +08:00
committed by GitHub
parent a19de71fad
commit e0b2cc7651

View File

@ -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];