From 9320a720c2102cf67e01eaebe141fbfab067482c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 20 Apr 2017 19:14:30 +0200 Subject: [PATCH] PaperScript: Fix parsing error in math operations without white-space. Closes #1314 --- src/core/PaperScript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/PaperScript.js b/src/core/PaperScript.js index 6272c74d..9d4eaf41 100644 --- a/src/core/PaperScript.js +++ b/src/core/PaperScript.js @@ -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