mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-17 10:11:31 +10:00
fix(parser): make reactive-resume v3 parser more lenient with validation
This commit is contained in:
@ -9,7 +9,9 @@ export const getInitials = (name: string) => {
|
||||
return ((initials.shift()?.[1] || "") + (initials.pop()?.[1] || "")).toUpperCase();
|
||||
};
|
||||
|
||||
export const isUrl = (string: string) => {
|
||||
export const isUrl = (string: string | null | undefined) => {
|
||||
if (!string) return false;
|
||||
|
||||
const urlRegex = /https?:\/\/[^ \n]+/i;
|
||||
|
||||
return urlRegex.test(string);
|
||||
|
||||
Reference in New Issue
Block a user