1
1
mirror of https://github.com/tstack/lnav.git synced 2024-08-17 08:50:41 +03:00

[data_scanner] fix file:/path recognition in data_scanner

This commit is contained in:
Timothy Stack 2022-05-11 12:20:02 -07:00
parent 5e6985d8a4
commit 0c7f6145c9
2 changed files with 20216 additions and 20222 deletions

File diff suppressed because it is too large Load Diff

View File

@ -164,7 +164,7 @@ bool data_scanner::tokenize2(pcre_context &pc, data_token_t &token_out)
cap[1].c_end -= 1;
return true;
}
[a-zA-Z0-9]+"://"[^\x00\r\n\t '"\[\](){}]+[/a-zA-Z0-9\-=&?%] { RET(DT_URL); }
[a-zA-Z0-9]+":/""/"?[^\x00\r\n\t '"\[\](){}]+[/a-zA-Z0-9\-=&?%] { RET(DT_URL); }
("/"|"./"|"../")[a-zA-Z0-9_\.\-\~/!@#$%^&*()]* { RET(DT_PATH); }
(SPACE|NUM)NUM":"NUM{2}/[^:] { RET(DT_TIME); }
(SPACE|NUM)NUM?":"NUM{2}":"NUM{2}("."NUM{3,6})?/[^:] { RET(DT_TIME); }