Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fix regex.

Brian Caocd400bcef239
diff --git a/lib/prisma.js b/lib/prisma.js
index 109e1ae30..27602ff53 100644
--- a/lib/prisma.js
+++ b/lib/prisma.js
@@ -99,7 +99,7 @@ function getTimestampInterval(field) {
function getSanitizedColumns(columns) {
return Object.keys(columns).reduce((acc, keyName) => {
- const sanitizedProperty = keyName.replace(/[\w\s_]/g, '');
+ const sanitizedProperty = keyName.replace(/[^\w\s_]/g, '');
acc[sanitizedProperty] = columns[keyName];