fix: nested var ref
This commit is contained in:
@@ -972,7 +972,11 @@ const CodeEditor = (props) => {
|
|||||||
// Resolve the child paths/variables first,
|
// Resolve the child paths/variables first,
|
||||||
// So that "$a.b.c" is handled before "$a.b" and then "$a"
|
// So that "$a.b.c" is handled before "$a.b" and then "$a"
|
||||||
// Replace "$parent.child" before "$parent" so "$parent.child" doesn't become "parentValue.child" (which can't be matched later).
|
// Replace "$parent.child" before "$parent" so "$parent.child" doesn't become "parentValue.child" (which can't be matched later).
|
||||||
found.sort((a, b) => b.length - a.length)
|
console.log("FOUND PROD BEFORE SORT:", found)
|
||||||
|
found.sort((a, b) => {
|
||||||
|
return Number(b.length) - Number(a.length)
|
||||||
|
})
|
||||||
|
console.log("FOUND PROD AFTER SORT:", found)
|
||||||
|
|
||||||
//console.log("FOUND: ", found)
|
//console.log("FOUND: ", found)
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user