Skip to content

Commit 9320a72

Browse files
committed
PaperScript: Fix parsing error in math operations without white-space.
Closes #1314
1 parent eeed73c commit 9320a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/PaperScript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Base.exports.PaperScript = function() {
168168
// Returns the code between two nodes, e.g. an operator and white-space.
169169
function getBetween(left, right) {
170170
return code.substring(getOffset(left.range[1]),
171-
getOffset(right.range[0]) - 1);
171+
getOffset(right.range[0]));
172172
}
173173

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

0 commit comments

Comments
 (0)