Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Fix double placement of * due to implicit multiplication
Browse files Browse the repository at this point in the history
Fix issue #531
  • Loading branch information
jiggzson committed Mar 17, 2020
1 parent 804e52f commit 38e80f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nerdamer.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -6132,8 +6132,9 @@ var nerdamer = (function (imports) {
//assume multiplication if it's not an operator except for minus
var is_operator = nxt in operators;

if((is_operator && operators[nxt].value === MINUS) || !is_operator)
if((is_operator && operators[nxt].value === MINUS) || !is_operator) {
target.push(new Token(MULT, Token.OPERATOR, col));
}
}
has_space = false; //remove the space
}
Expand Down Expand Up @@ -10006,7 +10007,7 @@ var nerdamer = (function (imports) {
var retval = '';
var tokens = this.filterTokens(raw_tokens);
var replace = {
'cdot': '*',
'cdot': '',
'times': '*',
'infty': 'Infinity'
};
Expand Down Expand Up @@ -11671,5 +11672,4 @@ var nerdamer = (function (imports) {

if ((typeof module) !== 'undefined') {
module.exports = nerdamer;
};

};

0 comments on commit 38e80f7

Please sign in to comment.