From cb43084e2635c645162a3b94c08e65da626eae3a Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 9 Sep 2020 14:18:06 +0200 Subject: [PATCH] regex: fix compilation --- vlib/regex/regex.v | 2 +- vlib/regex/regex_test.v | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/regex/regex.v b/vlib/regex/regex.v index 1b1210cedc..e733b0630b 100644 --- a/vlib/regex/regex.v +++ b/vlib/regex/regex.v @@ -326,7 +326,7 @@ pub mut: // Debug/log debug int // enable in order to have the unroll of the code 0 = NO_DEBUG, 1 = LIGHT 2 = VERBOSE log_func FnLog = simple_log // log function, can be customized by the user - query string = "" // query string + query string // query string } // Reset RE object diff --git a/vlib/regex/regex_test.v b/vlib/regex/regex_test.v index e0b93c732c..a175fc37b8 100644 --- a/vlib/regex/regex_test.v +++ b/vlib/regex/regex_test.v @@ -141,8 +141,8 @@ match_test_suite_re = [ struct TestItemCGroup { src string q string - s int = 0 - e int = 0 + s int + e int cg []int cgn map[string]int }