Handle more edge cases with RED.util.normalisePropertyExpression

This commit is contained in:
Nick O'Leary
2016-06-13 21:59:20 +01:00
parent 8fb1c76247
commit 08ade44dc8
3 changed files with 11 additions and 1 deletions

View File

@@ -32,7 +32,7 @@
quoteChar = c;
start = i+1;
} else if (c === '.') {
if (i===length-1) {
if (i===0 || i===length-1) {
return false;
}
// Next char is a-z
@@ -65,6 +65,8 @@
}
start = i+1;
inBox = false;
} else if (c === ' ') {
return false;
}
} else {
if (c === quoteChar) {