Replace spaces with underscore in job correlator

This commit is contained in:
daz 2023-07-07 11:38:30 -06:00
parent 58bc816421
commit 75332fbfec
No known key found for this signature in database
2 changed files with 10 additions and 3 deletions

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()
}