parser: regex: do not include captured fields with empty value
@@ -104,6 +104,10 @@ static void cb_results(unsigned char *name, unsigned char *value,
struct tm tm = {0};
(void) data;
+ if (vlen == 0) {
+ return;
+ }
+
len = strlen((char *) name);
/* Check if there is a time lookup field */
