()
| 15 | } |
| 16 | |
| 17 | func (r Regexp) String() string { |
| 18 | if !r.Valid() { |
| 19 | return "" |
| 20 | } |
| 21 | return r.Regexp.String() |
| 22 | } |
| 23 | |
| 24 | func (r *Regexp) UnmarshalYAML(node *yaml.Node) error { |
| 25 | r.Regexp = regexp.MustCompile(node.Value) |
no test coverage detected