mirror of
https://github.com/rxi/lovebird.git
synced 2024-11-15 22:54:21 +00:00
Fixed multiple-digit indices in env browser
Fixed the "fullpath" regex in the env browser's javascript so that variables with multiple-digit array indices are inserted into the input box properly when their value is clicked.
This commit is contained in:
parent
ae921e2033
commit
943c0c48df
@ -255,7 +255,8 @@ end
|
||||
updateDivContent("status", "disconnected ○");
|
||||
});
|
||||
}
|
||||
setInterval(refreshOutput, <?lua echo(lovebird.updateinterval) ?> * 1000);
|
||||
setInterval(refreshOutput,
|
||||
<?lua echo(lovebird.updateinterval) ?> * 1000);
|
||||
|
||||
/* Environment variable view */
|
||||
var envPath = "";
|
||||
@ -291,7 +292,7 @@ end
|
||||
k + "</a>";
|
||||
}
|
||||
var v = "<a href='#' onclick=\"insertVar('" +
|
||||
fullpath.replace(/\.(-?[0-9])+/g, "[$1]") +
|
||||
fullpath.replace(/\.(-?[0-9]+)/g, "[$1]") +
|
||||
"');\">" + x.value + "</a>"
|
||||
html += "<tr><td>" + k + "</td><td>" + v + "</td></tr>";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user