From 32a8f5bdab39f383f787cd92be2dd999f0a1c546 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Mon, 24 Aug 2020 17:09:59 -0400 Subject: Replace every minus sign, not just the first --- docs/bqn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/bqn.js b/docs/bqn.js index 5d382bca..b156f229 100644 --- a/docs/bqn.js +++ b/docs/bqn.js @@ -159,7 +159,7 @@ let bqn = src => run.apply(null,compile(str(src),runtime)); // Formatter let fmt0 = x => typeof x === "number" ? - (x==Infinity?"∞":x==-Infinity?"¯∞":(""+x).replace("-","¯")) + (x==Infinity?"∞":x==-Infinity?"¯∞":(""+x).replace(/-/g,"¯")) : typeof x === "function" ? (x.glyph||(x.m?"*"+x.m+"-modifier*":"*function*")) : ""+x; -- cgit v1.2.3