From 4b39fc2d753c1853760c1dc51163ede1120a0528 Mon Sep 17 00:00:00 2001 From: carlacostea Date: Thu, 12 Dec 2024 12:08:50 +0200 Subject: [PATCH 1/2] fix(trailing-zeros): Skip LaTeX-to-AST and AST-to-MathJS conversions for numeric equality checks PD-4410 --- src/latex-equal.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/latex-equal.ts b/src/latex-equal.ts index a4dba3d..811e9f2 100644 --- a/src/latex-equal.ts +++ b/src/latex-equal.ts @@ -32,7 +32,6 @@ export const latexEqual = (a: Latex, b: Latex, opts: Opts) => { const numB = parseFloat(b); if (numA === numB) { - return true; } } From f1c2d937abffa8c822e4ab3c63a55f3e38140400 Mon Sep 17 00:00:00 2001 From: carlacostea Date: Thu, 12 Dec 2024 12:14:31 +0200 Subject: [PATCH 2/2] fix(trailing-zeros): Skip LaTeX-to-AST and AST-to-MathJS conversions for numeric equality checks PD-4410 --- src/latex-equal.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/latex-equal.ts b/src/latex-equal.ts index 811e9f2..a00e3db 100644 --- a/src/latex-equal.ts +++ b/src/latex-equal.ts @@ -32,6 +32,7 @@ export const latexEqual = (a: Latex, b: Latex, opts: Opts) => { const numB = parseFloat(b); if (numA === numB) { + return true; } }