📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
fix origins regex
Maksim Mrug75ab67a39ce3
diff --git a/apps/production/src/common/constants.ts b/apps/production/src/common/constants.tsindex 96a3bc31d..8ac44fb89 100644--- a/apps/production/src/common/constants.ts+++ b/apps/production/src/common/constants.ts@@ -50,7 +50,7 @@ const PRODUCTION_ORIGIN = process.env.CLIENT_URL || 'https://swetrix.com'const { TWO_FACTOR_AUTHENTICATION_APP_NAME } = process.envconst ORIGINS_REGEX =- /^(?=.{1,255}$)[0-9A-Za-z:](?:(?:[0-9A-Za-z:]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z:](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/+ /^(?=.{1,255}$)([0-9A-Za-z*:](?:(?:[0-9A-Za-z*:]|-){0,61}[0-9A-Za-z*:])?(?:\.[0-9A-Za-z*:](?:(?:[0-9A-Za-z*-]|-){0,61}[0-9A-Za-z*:])?)*)?$/const IP_REGEX =/^(([12]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])(\.|\/)){4}([1-2]?[0-9]|3[0-2])$/const PID_REGEX = /^(?!.*--)[a-zA-Z0-9-]{12}$/