MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / _has_invalid_frac_arguments

Function _has_invalid_frac_arguments

scripts/lint_note.py:1135–1143  ·  view source on GitHub ↗
(expr: str)

Source from the content-addressed store, hash-verified

1133
1134
1135def _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
1146def _has_environment_mismatch(expr: str) -> bool:

Callers 1

math_render_issuesFunction · 0.85

Calls 1

_parse_group_argumentFunction · 0.85

Tested by

no test coverage detected