Skip to content

Commit

Permalink
Updated exponential match in formatFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickroberts committed Jun 24, 2014
1 parent d113371 commit d3ea680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/complex.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@
// does NOT edit format "x(" where x is a-z
// because that form implies a function, not a multiplication
mult = /\d[a-z\{\[\(]|[\}\]\)][a-z\d]/i,
expo = /^\de(?:-|)\d+/i,
expo = /^\de(?:[\-+]|)\d+(?!\d*\.)/i,
trim = /[\+\-\*\/\^%]/;
return str.replace(formExp, function parse(match, offset) {
if(mult.test(match)) {
Expand Down
Loading

0 comments on commit d3ea680

Please sign in to comment.