Conditions | 2 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 2 |
Changes | 0 |
1 | 1 | import re |
|
13 | def match(self, row: Dict[str, Any]) -> bool: |
||
14 | """ |
||
15 | Returns True if the field matches the regular expression of this simple condition. Returns False otherwise. |
||
16 | |||
17 | :param row: The row. |
||
18 | """ |
||
19 | if re.search(self._expression, row[self._field]): |
||
20 | 1 | return True |
|
21 | 1 | ||
22 | return False |
||
23 | 1 | ||
33 |