Fix badge encoding for values including the _ underscore character

This commit is contained in:
Jozef Izso 2025-11-05 21:20:23 +01:00
parent 6079ce3d17
commit bed521d765
Failed to extract signature
2 changed files with 11 additions and 1 deletions

View file

@ -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, '__')
}