From 62e4c68907d8d33709c2c1f92a161dff00b3d5f2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 22:01:36 +0200 Subject: Adding upstream version 0.11.2. Signed-off-by: Daniel Baumann --- .../formats/invalid-properties/format.json | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 test/bad-config/formats/invalid-properties/format.json (limited to 'test/bad-config/formats/invalid-properties') diff --git a/test/bad-config/formats/invalid-properties/format.json b/test/bad-config/formats/invalid-properties/format.json new file mode 100644 index 0000000..a69a179 --- /dev/null +++ b/test/bad-config/formats/invalid-properties/format.json @@ -0,0 +1,45 @@ +{ + "$schema": "https://lnav.org/schemas/format-v1.schema.json", + "invalid_props_log": { + "title": "invalid properties", + "regex": { + "std": { + "pattern": "^(?\\d+): (?\\w+) (?.*)$" + } + }, + "timestamp-field": "ts", + "subsecond-field": "ts-sub", + "sample": [ + { + "line": "1428634687123: 1234 abc" + } + ], + "value": { + "non-existent": { + "kind": "string" + } + }, + "highlights": { + "hl1": { + "color": "not a color", + "background-color": "also not a color" + } + }, + "tags": { + "badtag": { + "paths": [] + }, + "badtag2": { + "pattern": "" + }, + "badtag3": { + "pattern": "invalid(abc" + } + }, + "search-table": { + "bad_table_regex": { + "pattern": "abc(def" + } + } + } +} \ No newline at end of file -- cgit v1.2.3