Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nerdamer.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -6111,7 +6111,7 @@ var nerdamer = (function (imports) {
* sending to the parser
* @param {String} e
*/
var prepare_expression = function (e) {
this.prepareExpression = function (e) {
/*
* Since variables cannot start with a number, the assumption is made that when this occurs the
* user intents for this to be a coefficient. The multiplication symbol in then added. The same goes for
Expand Down Expand Up @@ -6937,7 +6937,7 @@ var nerdamer = (function (imports) {
return Q[0];
};
this.parse = function (e, substitutions) {
e = prepare_expression(e);
e = this.prepareExpression(e);
substitutions = substitutions || {};
//three passes but easier to debug
var tokens = this.tokenize(e);
Expand Down