mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-25 10:36:56 -06:00
M13.12: script socket port validation, resource-string trailing commas, parser and socket edge-case tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
88384197f9
commit
2f1788bdf6
@@ -143,6 +143,12 @@ function __uiParseRes(src) {
|
||||
ws();
|
||||
if (s.charAt(i) === ",") {
|
||||
i++;
|
||||
// A trailing comma, as JavaScript allows.
|
||||
ws();
|
||||
if (s.charAt(i) === "]") {
|
||||
i++;
|
||||
return a;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (s.charAt(i) === "]") {
|
||||
|
||||
Reference in New Issue
Block a user