(value, criteria_pattern)
| 265 | |
| 266 | |
| 267 | def match_regex(value, criteria_pattern): |
| 268 | # match_regex is deprecated, please use 'regex' and 'iregex' |
| 269 | if criteria_pattern is None: |
| 270 | return False |
| 271 | |
| 272 | value, criteria_pattern = ensure_operators_are_strings(value, criteria_pattern) |
| 273 | regex = re.compile(criteria_pattern, re.DOTALL) |
| 274 | # check for a match and not for details of the match. |
| 275 | return regex.match(value) is not None |
| 276 | |
| 277 | |
| 278 | def regex(value, criteria_pattern): |
nothing calls this directly
no test coverage detected