summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--byob.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/byob.js b/byob.js
index 1277bb6..71b3298 100644
--- a/byob.js
+++ b/byob.js
@@ -688,7 +688,8 @@ CustomCommandBlockMorph.prototype.labelPart = function (spec) {
return CustomCommandBlockMorph.uber.labelPart.call(this, spec);
}
if ((spec[0] === '%') && (spec.length > 1)) {
- part = new BlockInputFragmentMorph(spec.slice(1));
+ var label = spec.replace(/%/g, '');
+ part = new BlockInputFragmentMorph(label);
} else {
part = new BlockLabelFragmentMorph(spec);
part.fontSize = this.fontSize;