A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
Adding check for ```addHttp()``` to see if ```mailto:``` or ```tel:``` is present.Signed-off-by: Jadin Heaston <[email protected]>
Jadin Heaston6358fbad3024
diff --git a/client/utils/template.ts b/client/utils/template.tsindex 5ff501a56..9e9fc83c4 100644--- a/client/utils/template.ts+++ b/client/utils/template.ts@@ -20,7 +20,7 @@ export const formatLocation = (location?: Location): string => {};export const addHttp = (url: string) => {- if (url.search(/^http[s]?:\/\//) == -1) {+ if (url.search(/^http[s]?:\/\//) == -1 && url.search(/^mailto:/) == -1 && url.search(/^tel:/) == -1) {url = 'http://' + url;}