mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-25 22:29:26 +08:00
no longer using blank string for failed regex
This commit is contained in:
@@ -18,7 +18,7 @@ describe('WorkflowAnnotationUtils', () => {
|
||||
})
|
||||
it('should return a blank string when regex fails (https://github.com/Azure/k8s-deploy/issues/266)', () => {
|
||||
const label = '持续部署'
|
||||
expect(cleanLabel(label)).toEqual('')
|
||||
expect(cleanLabel(label)).toEqual('github-workflow-file')
|
||||
|
||||
let removedInvalidChars = label
|
||||
.replace(/\s/gi, '_')
|
||||
|
||||
Reference in New Issue
Block a user