Rename ValidatorRegexp to CaptureRegexp
This commit is contained in:
parent
e472b482d6
commit
78189aab37
5 changed files with 58 additions and 58 deletions
|
|
@ -46,8 +46,8 @@ type ExerciceFlag struct {
|
|||
Ordered bool `toml:",omitempty"`
|
||||
CaseSensitive bool `toml:",omitempty"`
|
||||
NoTrim bool `toml:",omitempty"`
|
||||
ValidatorRe string `toml:"validator_regexp,omitempty"`
|
||||
SortReGroups bool `toml:"sort_validator_regexp_groups,omitempty"`
|
||||
CaptureRe string `toml:"capture_regexp,omitempty"`
|
||||
SortReGroups bool `toml:"sort_capture_regexp_groups,omitempty"`
|
||||
Placeholder string `toml:",omitempty"`
|
||||
Help string `toml:",omitempty"`
|
||||
BonusGain int32 `toml:"bonus_gain,omitempty"`
|
||||
|
|
@ -143,7 +143,7 @@ func getExerciceParams(i Importer, exercice *fic.Exercice) (params ExerciceParam
|
|||
Label: flag.Label,
|
||||
Type: "ucq",
|
||||
Raw: flag.Raw,
|
||||
ValidatorRe: flag.ValidatorRe,
|
||||
CaptureRe: flag.CaptureRe,
|
||||
Placeholder: flag.Placeholder,
|
||||
ChoicesCost: flag.ChoicesCost,
|
||||
Choice: flag.Choice,
|
||||
|
|
|
|||
Reference in a new issue