Skip to content

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!

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.ts
index 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;
}