Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Added validation utils

Blaumausdd638fc23f79
diff --git a/src/utils/validator.js b/src/utils/validator.js
new file mode 100644
index 000000000..f531d0e14
--- /dev/null
+++ b/src/utils/validator.js
@@ -0,0 +1,3 @@
+export const isValidEmail = text => text.match(/^\w+([.+-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,7})+$/)
+
+export const isValidPassword = text => text.length >= 8
\ No newline at end of file