Ensure that the extracted tuple string starts with a space to fully match
all contained key-value pairs.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
if (nfct) {
for (let line = nfct.read('line'); length(line); line = nfct.read('line')) {
- let m = match(line, /^(ipv[46]) +([0-9]+) +\S+ +([0-9]+) +(.+)\n$/);
+ let m = match(line, /^(ipv[46]) +([0-9]+) +\S+ +([0-9]+)( +.+)\n$/);
if (!m)
continue;
let tuples = m[4];
let timeout = null;
- m = match(tuples, /^([0-9]+) (.+)$/);
+ m = match(tuples, /^ +([0-9]+)( .+)$/);
if (m) {
timeout = m[1];