replace / with _ in trId (#15256)

Fixes jquery error when clicking to collapse/expand a panel
This commit is contained in:
Silvio 2020-09-02 20:53:02 +02:00 • committed by GitHub
commit 3172ca5475
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ import "testamenthtml.nimf"
proc generateTestResultPanelPartial(outfile: File, testResultRow: JsonNode) =
let
trId = htmlQuote(testResultRow["category"].str & "_" & testResultRow["name"].str).
multiReplace({".": "_", " ": "_", ":": "_"})
multiReplace({".": "_", " ": "_", ":": "_", "/": "_"})
name = testResultRow["name"].str.htmlQuote()
category = testResultRow["category"].str.htmlQuote()
target = testResultRow["target"].str.htmlQuote()