1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2024-10-27 20:34:20 +00:00

fe: do not html entity encode angle braces

in log output, ansi_up does it already.

resolves #148
This commit is contained in:
Oliver Giles 2021-03-07 21:02:29 +13:00
parent c42b6d4207
commit 9b8c3762ec

View File

@ -582,9 +582,7 @@ const Run = templateId => {
if (done) if (done)
return; return;
state.log += ansi_up.ansi_to_html( state.log += ansi_up.ansi_to_html(
value.replace(/</g,'&lt;') value.replace(/\033\[\{([^:]+):(\d+)\033\\/g, (m, $1, $2) =>
.replace(/>/g,'&gt;')
.replace(/\033\[\{([^:]+):(\d+)\033\\/g, (m, $1, $2) =>
'<a href="jobs/'+$1+'" onclick="return vroute(this);">'+$1+'</a>:'+ '<a href="jobs/'+$1+'" onclick="return vroute(this);">'+$1+'</a>:'+
'<a href="jobs/'+$1+'/'+$2+'" onclick="return vroute(this);">#'+$2+'</a>' '<a href="jobs/'+$1+'/'+$2+'" onclick="return vroute(this);">#'+$2+'</a>'
) )