1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-10 20:01:45 +00:00

fix(syntax): use start-of-line anchor for log levels

This commit is contained in:
Matei6942
2026-08-10 20:00:44 +03:00
parent 531d54b110
commit 3ca4a01be6
+4 -4
View File
@@ -39,19 +39,19 @@ contexts:
push: url-host
log_level_lines:
# Prevent retrying each lookahead at every position.
- match: \G(?=.*{{error}})
- match: ^(?=.*{{error}})
push:
- error_line_meta
- main_pop_at_eol
- match: \G(?=.*{{warning}})
- match: ^(?=.*{{warning}})
push:
- warning_line_meta
- main_pop_at_eol
- match: \G(?=.*{{info}})
- match: ^(?=.*{{info}})
push:
- info_line_meta
- main_pop_at_eol
- match: \G(?=.*{{debug}})
- match: ^(?=.*{{debug}})
push:
- debug_line_meta
- main_pop_at_eol