diff --git a/HISTORY.md b/HISTORY.md index b83d04dda..b49ef7205 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,9 @@ ## in development: +### 2024-12-18 + * byob: tweaked dropdown-menu parser + ## 10.3.3: * **Translation Updates:** * Japanese and Spanish diff --git a/snap.html b/snap.html index 55508423b..5bb894056 100755 --- a/snap.html +++ b/snap.html @@ -23,7 +23,7 @@ - + diff --git a/src/byob.js b/src/byob.js index b675f863b..42b5b2ad8 100644 --- a/src/byob.js +++ b/src/byob.js @@ -112,7 +112,7 @@ ArgLabelMorph, embedMetadataPNG, ArgMorph, RingMorph, InputList*/ // Global stuff //////////////////////////////////////////////////////// -modules.byob = '2024-December-04'; +modules.byob = '2024-December-18'; // Declarations @@ -478,6 +478,11 @@ CustomBlockDefinition.prototype.parseChoices = function (string) { val = [val.slice(2)]; } if (isNil(val)) { + if (key === '~') { + key = '~'.repeat( + Object.keys(dict).filter(each => each.startsWith('~') + ).length + 1); + } dict[key] = key; } else { dict[key] = val;