diff --git a/src/sprintf.js b/src/sprintf.js index 65d6324..03017dd 100644 --- a/src/sprintf.js +++ b/src/sprintf.js @@ -63,7 +63,7 @@ } if (re.number.test(ph.type)) { - is_positive = arg >= 0 + is_positive = arg >= 0 || isNaN(arg) } switch (ph.type) {