diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-08-24 17:09:59 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-08-24 17:09:59 -0400 |
| commit | 32a8f5bdab39f383f787cd92be2dd999f0a1c546 (patch) | |
| tree | b347a2a6b4b464f57fcee382443092aa5793bab5 | |
| parent | 66e19d12ce49d9001c1f84742d50e70c68bdea7b (diff) | |
Replace every minus sign, not just the first
| -rw-r--r-- | docs/bqn.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
