Skip to content

Commit 3272f8e

Browse files
committed
Add deleted '?' back
1 parent a6c9816 commit 3272f8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ lib.adjustFormat = function adjustFormat(formatStr) {
2323
// that prefix before deciding whether to trim, and reattach it: prepending
2424
// the tilde to the whole string (e.g. "~+.2f") is an invalid spec that
2525
// d3Format rejects, so "+.2f" used to be silently dropped.
26-
var prefix = (formatStr.match(/^[+\-( ]/) || [''])[0];
26+
var prefix = (formatStr.match(/^[+\-( ]?/) || [''])[0];
2727
var rest = formatStr.slice(prefix.length);
2828

2929
// try adding tilde to trim trailing zeros; leave symbol-led specs ($, #)

0 commit comments

Comments
 (0)