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:
parent
5e6985d8a4
commit
0c7f6145c9
40436
src/data_scanner_re.cc
40436
src/data_scanner_re.cc
File diff suppressed because it is too large
Load Diff
@ -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); }
|
||||
|
Loading…
Reference in New Issue
Block a user