mirror of
https://github.com/tstack/lnav.git
synced 2024-09-11 13:05:51 +03:00
[args] fix handling of non-numeric text after colon in a path
Fixes #1155
This commit is contained in:
parent
a324bc8c1c
commit
9323958296
@ -2816,7 +2816,6 @@ SELECT tbl_name FROM sqlite_master WHERE sql LIKE 'CREATE VIRTUAL TABLE%'
|
||||
|
||||
auto colon_index = file_path.rfind(':');
|
||||
if (colon_index != std::string::npos) {
|
||||
file_path_without_trailer = file_path.substr(0, colon_index);
|
||||
auto top_range = scn::string_view{&file_path[colon_index + 1],
|
||||
&(*file_path.cend())};
|
||||
auto scan_res = scn::scan_value<int>(top_range);
|
||||
|
Loading…
Reference in New Issue
Block a user