commit df954a8c645c5a395bfaeb487627bc610e9b82e6 Author: Daniel Swanson Date: Fri Jul 23 14:54:14 2021 -0500 retain markers of relevant steps when paginating so we can sort diff --git a/apertium-regtest.py b/apertium-regtest.py index 5319c2e..6da3fb4 100755 --- a/apertium-regtest.py +++ b/apertium-regtest.py @@ -409,6 +409,7 @@ class Corpus: { 'cmd': blob['cmd'], 'opt': blob['opt'], + 'relevant': blob['relevant'], 'output': hf(blob['output']), 'expect': hf(blob['expect']), 'gold': hf(blob['gold']), diff --git a/static/regtest.js b/static/regtest.js index 3cda5e9..cfdd5d9 100644 --- a/static/regtest.js +++ b/static/regtest.js @@ -134,7 +134,7 @@ function hilite_output(t, f) { return ret; }); t = t.replace(/((?:<\w+>)+)/g, '$1'); - t = t.replace(/(\$|\{)/g, '$1'); + t = t.replace(/(\$|\{|\})/g, '$1'); } return t;