(expr: str)
| 1133 | |
| 1134 | |
| 1135 | def _has_invalid_frac_arguments(expr: str) -> bool: |
| 1136 | for match in re.finditer(r"(?<!\\)\\frac\b", expr): |
| 1137 | next_index = _parse_group_argument(expr, match.end()) |
| 1138 | if next_index is None: |
| 1139 | return True |
| 1140 | final_index = _parse_group_argument(expr, next_index) |
| 1141 | if final_index is None: |
| 1142 | return True |
| 1143 | return False |
| 1144 | |
| 1145 | |
| 1146 | def _has_environment_mismatch(expr: str) -> bool: |
no test coverage detected