From b1c3076395f4810b28702dda527d34e9bdfc1bff Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 26 Oct 2024 11:14:28 +0300 Subject: [PATCH] run `v fmt -w .` with latest V 0.4.8 067c5b6 --- regex.v | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/regex.v b/regex.v index bfedef0..f2a8fbb 100644 --- a/regex.v +++ b/regex.v @@ -5,8 +5,8 @@ struct Regex { pub: re &C.pcre // A pointer to pcre structure extra &C.pcre_extra // A pointer to pcre_extra structure - captures int // The number of capture groups - options int // Regex options + captures int // The number of capture groups + options int // Regex options } pub fn (r &Regex) free() { @@ -35,11 +35,11 @@ pub fn (r &Regex) match_str(str string, pos int, options int) !MatchData { return error('No match!') } return MatchData{ - re: r.re - regex: r - str: str - ovector: ovector - pos: pos + re: r.re + regex: r + str: str + ovector: ovector + pos: pos group_size: r.captures + 1 } }