Fixed fetcherror, when expression ends with operator and atleast one space
This commit is contained in:
@ -79,7 +79,7 @@ const TruthTablePage: Component = () => {
|
|||||||
e.preventDefault(); // Stops the page from reloading onClick
|
e.preventDefault(); // Stops the page from reloading onClick
|
||||||
let exp = getInputElement()?.value;
|
let exp = getInputElement()?.value;
|
||||||
|
|
||||||
exp = exp.replaceAll("|", "/")
|
exp = exp.replaceAll("|", "/").trimEnd();
|
||||||
|
|
||||||
if (exp) {
|
if (exp) {
|
||||||
history.pushState(null, "", `?exp=${ encodeURIComponent(exp) }&simplify=${ simplifyEnabled() }&
|
history.pushState(null, "", `?exp=${ encodeURIComponent(exp) }&simplify=${ simplifyEnabled() }&
|
||||||
|
Reference in New Issue
Block a user