PaperScript: Fix parsing error in math operations without white-space.

Closes #1314
This commit is contained in:
Jürg Lehni 2017-04-20 19:14:30 +02:00
parent eeed73c1e9
commit 9320a720c2

View file

@ -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