Fix regex.

This commit is contained in:
Brian Cao 2023-01-18 16:36:28 -08:00
parent 922c3acab3
commit cd400bcef2

View File

@ -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];