Skip to content

Commit

Permalink
run v fmt -w . with latest V 0.4.8 067c5b6
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Oct 26, 2024
1 parent 16760be commit b1c3076
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions regex.v
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit b1c3076

Please sign in to comment.