Skip to content

Commit

Permalink
PaperScript: Fix parsing error in math operations without white-space.
Browse files Browse the repository at this point in the history
  • Loading branch information
lehni committed Apr 20, 2017
1 parent eeed73c commit 9320a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/PaperScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Base.exports.PaperScript = function() {
// Returns the code between two nodes, e.g. an operator and white-space.
function getBetween(left, right) {
return code.substring(getOffset(left.range[1]),
getOffset(right.range[0]) - 1);
getOffset(right.range[0]));
}

// Replaces the node's code with a new version and keeps insertions
Expand Down

0 comments on commit 9320a72

Please sign in to comment.