mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-01 02:45:22 -08:00
Fix badge encoding for values including the _ underscore character
This commit is contained in:
@@ -309,5 +309,5 @@ function getResultIcon(result: TestExecutionResult): string {
|
||||
}
|
||||
|
||||
function encodeImgShieldsURIComponent(component: string): string {
|
||||
return encodeURIComponent(component).replace(/-/g, '--')
|
||||
return encodeURIComponent(component).replace(/-/g, '--').replace(/_/g, '__')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user