A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix email with + is not validated
ammarahm-ed95ed04d01f16
diff --git a/apps/mobile/src/services/Validation.js b/apps/mobile/src/services/Validation.jsindex e981c5f3c..a0b9dc8cb 100644--- a/apps/mobile/src/services/Validation.js+++ b/apps/mobile/src/services/Validation.js@@ -1,10 +1,8 @@-import {db} from '../utils/DB';--let regex = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;+import validator from 'validator';export function validateEmail(email) {if (email && email.length > 0) {- return regex.test(email);+ return validator.isEmail(email)} else {return false;}