add limited highlighting of filter test results based on matched rules

This commit is contained in:
Andrew Dolgov
2025-03-28 07:59:46 +03:00
parent 49766ab01f
commit 8986a3e7ee
4 changed files with 97 additions and 31 deletions

View File

@@ -20,7 +20,7 @@ const Filters = {
PARAM_ACTIONS: [4, 6, 7, 9, 10],
filter_info: {},
formatMatchedRules: function(rules) {
return rules.map((r) => r.regexp_matches[0] + ' - ' + r.reg_exp).join('\n');
return rules.map((r) => r.regexp_matches[0] + ' - ' + r.reg_exp + ' (' + r.type + ')').join('\n');
},
test: function() {
const test_dialog = new fox.SingleUseDialog({