mirror of
https://github.com/tstack/lnav.git
synced 2024-09-11 13:05:51 +03:00
[data] version regex tweak
This commit is contained in:
parent
39f0b0995b
commit
44970b5800
@ -97,7 +97,11 @@ static struct {
|
||||
{ "uuid", pcrepp(
|
||||
"\\A([0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12})"), },
|
||||
|
||||
{ "vers", pcrepp("\\A([0-9]+(?:\\.[0-9]+\\w+?){2,}\\b)"),
|
||||
{ "vers", pcrepp(
|
||||
"\\A("
|
||||
"[0-9]+(?:\\.[0-9]+\\w*){2,}(?:-\\w+)?|"
|
||||
"[0-9]+(?:\\.[0-9]+\\w*)+-\\w+?"
|
||||
")\\b"),
|
||||
},
|
||||
{ "oct", pcrepp("\\A(-?0[0-7]+\\b)"),
|
||||
},
|
||||
|
@ -164,6 +164,7 @@ dist_noinst_DATA = \
|
||||
datafile_simple.8 \
|
||||
datafile_simple.9 \
|
||||
datafile_simple.10 \
|
||||
datafile_simple.11 \
|
||||
listview_output.0 \
|
||||
listview_output.1 \
|
||||
listview_output.2 \
|
||||
|
7
test/datafile_simple.11
Normal file
7
test/datafile_simple.11
Normal file
@ -0,0 +1,7 @@
|
||||
version numbers 0.6.16 1.2-a1
|
||||
key 17:17 ^
|
||||
vers 17:23 ^----^ 0.6.16
|
||||
pair 17:23 ^----^ 0.6.16
|
||||
key 25:25 ^
|
||||
vers 25:31 ^----^ 1.2-a1
|
||||
pair 25:31 ^----^ 1.2-a1
|
Loading…
Reference in New Issue
Block a user