mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-26 21:53:48 +03:00
fix: Extend regex in Linkedin Field to support LinkedIn school URL (#4198)
This commit is contained in:
parent
a19de71fad
commit
e0b2cc7651
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user