diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 86ea888c..06276bda 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,13 +24,13 @@ repos: - id: black-jupyter - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: "v0.0.272" + rev: "v0.0.275" hooks: - id: ruff args: ["--fix", "--show-fixes"] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.3.0 + rev: v1.4.1 hooks: - id: mypy files: src diff --git a/src/particle/particle/utilities.py b/src/particle/particle/utilities.py index 7671ea21..e3017a98 100644 --- a/src/particle/particle/utilities.py +++ b/src/particle/particle/utilities.py @@ -176,5 +176,4 @@ def latex_to_html_name(name: str) -> str: name = name.replace(rf"\{gl}", f"&#x{name2codepoint[gl]:04x};") name = re.sub(r"\\tilde\{(.*?)\}", r"\1̃", name) name = re.sub(r"\\overline\{(.*?)\}", r"\1̅", name) - name = re.sub(r"\\bar\{(.*?)\}", r"\1̅", name) - return name + return re.sub(r"\\bar\{(.*?)\}", r"\1̅", name)