Fix LinkedIn URL special character formatting (#7249)
Before: <img width="348" alt="link-formatting-before" src="https://github.com/user-attachments/assets/500344e9-09f2-4a3e-99cc-6a3f1eb2685b"> After: <img width="348" alt="linkedin-formatting-after" src="https://github.com/user-attachments/assets/b5d845c8-8f25-493b-8fe1-ed79f3c0bbdd"> Co-authored-by: Nitin Koche <nitinkoche03@gmail.com>
This commit is contained in:
@ -16,7 +16,7 @@ export const getDisplayValueByUrlType = ({
|
||||
/(?:https?:\/\/)?(?:www.)?linkedin.com\/(?:in|company|school)\/(.*)/,
|
||||
);
|
||||
if (isDefined(matches?.[1])) {
|
||||
return matches?.[1];
|
||||
return decodeURIComponent(matches?.[1]);
|
||||
} else {
|
||||
return 'LinkedIn';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user