mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-05-03 05:08:35 +02:00
Replace spaces with underscore in job correlator
This commit is contained in:
parent
58bc816421
commit
75332fbfec
2 changed files with 10 additions and 3 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue