diff options
| author | Jens Mönig <jens@moenig.org> | 2014-11-20 15:03:50 +0100 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2014-11-20 15:03:50 +0100 |
| commit | 7a8ee8eb3dd82d81dce470ca6560ef5001357792 (patch) | |
| tree | 523f9c8887a5b8923421cbc65956172621f76df5 /byob.js | |
| parent | cbe3d6fe185531758397bc44a38a2817aed885e6 (diff) | |
| parent | 413e6a0e6a884ef9811221a3f92353f1d3fa6544 (diff) | |
| download | snap-byow-7a8ee8eb3dd82d81dce470ca6560ef5001357792.tar.gz snap-byow-7a8ee8eb3dd82d81dce470ca6560ef5001357792.zip | |
Merge pull request #623 from natashasandy/master
Fixed percent symbols in custom blocks
Diffstat (limited to 'byob.js')
| -rw-r--r-- | byob.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |
