dblume commited on 2025-07-08 13:35:38
Showing 1 changed files, with 1 additions and 1 deletions.
More date and time formats accepted: * "2025-07-03", "25-07-03", or "07-03" * "13:04:22.885" or "13:04:22"
| ... | ... |
@@ -478,7 +478,7 @@ lua << EOF |
| 478 | 478 |
['.*'] = {
|
| 479 | 479 |
priority = -math.huge, |
| 480 | 480 |
function(path, bufnr) |
| 481 |
- local rokulog_pat = [[^\(\d\{4\}-\)\?\d\{2\}-\d\{2\} \d\{2\}:\d\{2\}:\d\{2\}.\d\{3\}\s\+\(!\|n\|dev\|\d\+\(_[0-9a-f]\+\)\?\|tvinput\.\S\+\)\?[ *]\[]]
|
|
| 481 |
+ local rokulog_pat = [[^\(\(\d\{2\}\|\d\{4\}\)-\)\?\d\{2\}-\d\{2\} \d\{2\}:\d\{2\}:\d\{2\}\(\.\d\{3\}\)\?\s\+\(!\|n\|dev\|\d\+\(_[0-9a-f]\+\)\?\|tvinput\.\S\+\)\?[ *]\[]]
|
|
| 482 | 482 |
if vim.fn.has('nvim-0.10') == 1 then
|
| 483 | 483 |
local content = vim.api.nvim_buf_get_lines(bufnr, 0, 1, false)[1] or '' |
| 484 | 484 |
if vim.regex(rokulog_pat):match_str(content) ~= nil then |
| 485 | 485 |