Replace spaces with underscore in job correlator

This commit is contained in:
daz committed 2023-07-07 20:42:49 -06:00
1 parent ee7ca6ac9b
commit c0186c5832
2 files changed
+10 -3

No files matched your search

+4 -1
View File
@@ -171,5 +171,8 @@ function describeMatrix(matrixJson: string): string {
}
function sanitize(value: string): string {
return value.replace(/[^a-zA-Z0-9_-]/g, '').toLowerCase()
return value
.replace(/[^a-zA-Z0-9_-\s]/g, '')
.replace(/\s+/g, '_')
.toLowerCase()
}