From e0b2cc76517cdf483ee6f85c6d4ca8dc3f5a12b9 Mon Sep 17 00:00:00 2001 From: Elton Goh Jun Hao <75515229+EltonGohJH@users.noreply.github.com> Date: Wed, 28 Feb 2024 17:19:41 +0800 Subject: [PATCH] fix: Extend regex in Linkedin Field to support LinkedIn school URL (#4198) --- packages/twenty-front/src/utils/getDisplayValueByUrlType.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-front/src/utils/getDisplayValueByUrlType.ts b/packages/twenty-front/src/utils/getDisplayValueByUrlType.ts index 80183962c..e92e28540 100644 --- a/packages/twenty-front/src/utils/getDisplayValueByUrlType.ts +++ b/packages/twenty-front/src/utils/getDisplayValueByUrlType.ts @@ -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];