compute-engine
compute-engine copied to clipboard
Incorrectly parses input with `latexOptions.decimalMarker` option set to `{,}`
It doesn't seem like ComputeEngine properly parses latex input with latexOptions.decimalMarker set to "{,}"
const ce = new ComputeEngine()
ce.latexOptions = { decimalMarker: "{,}" }
const { json } = ce.parse("12{,}3")
// json -> ["Error",12,"'syntax-error'",["LatexForm","'{,}3'"]]
// Now it also breaks when parsing input with `.` as separator
const { json } = ce.parse("12.3")
// json -> ["Error",12,"'syntax-error'",["LatexForm","'.3'"]]