StringInsensitive tests whether the string is present, but ignoring string casing.
(s string)
| 27 | |
| 28 | // StringInsensitive tests whether the string is present, but ignoring string casing. |
| 29 | func StringInsensitive(s string) Function { |
| 30 | return func(pi Input) Result { |
| 31 | return parseStringInsensitive(pi, s) |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func parseStringInsensitive(pi Input, s string) Result { |
| 36 | name := "stringinsensitive: '" + s + "'" |