mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
PaperScript: Fix parsing error in math operations without white-space.
Closes #1314
This commit is contained in:
parent
eeed73c1e9
commit
9320a720c2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue