mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 18:26:20 +01:00
Fix regex.
This commit is contained in:
parent
922c3acab3
commit
cd400bcef2
@ -99,7 +99,7 @@ function getTimestampInterval(field) {
|
|||||||
|
|
||||||
function getSanitizedColumns(columns) {
|
function getSanitizedColumns(columns) {
|
||||||
return Object.keys(columns).reduce((acc, keyName) => {
|
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];
|
acc[sanitizedProperty] = columns[keyName];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user