Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: allow underscores in url validation

Ammar Ahmeda792a3d6e461
diff --git a/apps/mobile/app/components/ui/input/index.tsx b/apps/mobile/app/components/ui/input/index.tsx
index 8fe50b85c..74c433073 100644
--- a/apps/mobile/app/components/ui/input/index.tsx
+++ b/apps/mobile/app/components/ui/input/index.tsx
@@ -154,7 +154,7 @@ const Input = ({
isError = customValidator && value === customValidator();
break;
case "url":
- isError = isURL(value);
+ isError = isURL(value, { allow_underscores: true });
break;
case "phonenumber": {
const result = phone(value, {