From 3533b9bc9bcadec7d9a625f1506bbd320d432988 Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad <600878@stud.hvl.no> Date: Wed, 8 Feb 2023 18:01:53 +0100 Subject: [PATCH] Fixed fetcherror, when expression ends with operator and atleast one space --- src/truth-table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/truth-table.tsx b/src/truth-table.tsx index 62155ef..7247e45 100644 --- a/src/truth-table.tsx +++ b/src/truth-table.tsx @@ -79,7 +79,7 @@ const TruthTablePage: Component = () => { e.preventDefault(); // Stops the page from reloading onClick let exp = getInputElement()?.value; - exp = exp.replaceAll("|", "/") + exp = exp.replaceAll("|", "/").trimEnd(); if (exp) { history.pushState(null, "", `?exp=${ encodeURIComponent(exp) }&simplify=${ simplifyEnabled() }&