(value)
| 16 | import re |
| 17 | |
| 18 | def is_zero(value): |
| 19 | pattern = r"^([-+]?\d*\.?\d+)(px|em|rem|%|vh|vw|pt|cm|mm|in|ex|ch|pc)?$" |
| 20 | |
| 21 | match = re.match(pattern, value.strip().lower()) |
| 22 | if match: |
| 23 | number = float(match.group(1)) |
| 24 | if number == 0: |
| 25 | return True |
| 26 | return False |
| 27 | |
| 28 | def box_area(box): |
| 29 | # box = xyxy(4,n) |
no outgoing calls
no test coverage detected