File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ document.addEventListener("DOMContentLoaded", async () => {
3232
3333 const mirrorAge = Object . fromEntries (
3434 data [ "data" ] [ "result" ] . map ( ( val ) => {
35- const url = val [ "metric" ] [ "instance" ] . replace ( / c u r r e n t $ / , "" ) ;
35+ const url = val [ "metric" ] [ "instance" ] . replace ( / \/ c u r r e n t $ / , "" ) ;
3636 const age = parseFloat ( val [ "value" ] [ 1 ] ) ;
3737 return [ url , age ] ;
3838 } )
@@ -50,7 +50,8 @@ document.addEventListener("DOMContentLoaded", async () => {
5050 const url = row
5151 . querySelector ( "a" )
5252 . getAttribute ( "href" )
53- . replace ( / h t t p s ? : \/ \/ / , "" ) ;
53+ . replace ( / h t t p s ? : \/ \/ / , "" )
54+ . replace ( / \/ $ / , "" ) ;
5455 const { className, innerText } = parseAge ( mirrorAge [ url ] ) ;
5556
5657 const cell = document . createElement ( "td" ) ;
You can’t perform that action at this time.
0 commit comments