rename "character" to "letter" in delimiter list

of “split” block
pull/3/merge
jmoenig 2014-07-18 15:36:56 +02:00
rodzic 314c99737f
commit f09a717719
3 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/
// Global stuff //////////////////////////////////////////////////////// // Global stuff ////////////////////////////////////////////////////////
modules.blocks = '2014-July-17'; modules.blocks = '2014-July-18';
var SyntaxElementMorph; var SyntaxElementMorph;
@ -848,7 +848,7 @@ SyntaxElementMorph.prototype.labelPart = function (spec) {
null, // text null, // text
false, // numeric? false, // numeric?
{ {
'character' : ['character'], 'letter' : ['letter'],
'whitespace' : ['whitespace'], 'whitespace' : ['whitespace'],
'line' : ['line'], 'line' : ['line'],
'tab' : ['tab'], 'tab' : ['tab'],

Wyświetl plik

@ -2209,3 +2209,4 @@ ______
------ ------
* Lists: incorporate Brians adhoc fixes, thanks, Brian! * Lists: incorporate Brians adhoc fixes, thanks, Brian!
* GUI: Use new mechanism for unique costume names on the paint editor, renamed costumes and costumes dragged and dropped onto sprite icons * GUI: Use new mechanism for unique costume names on the paint editor, renamed costumes and costumes dragged and dropped onto sprite icons
* add “letter” option to the split blocks list of delimiters, Thanks, Michael!

Wyświetl plik

@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/
// Global stuff //////////////////////////////////////////////////////// // Global stuff ////////////////////////////////////////////////////////
modules.threads = '2014-July-11'; modules.threads = '2014-July-18';
var ThreadManager; var ThreadManager;
var Process; var Process;
@ -2148,7 +2148,7 @@ Process.prototype.reportTextSplit = function (string, delimiter) {
break; break;
case 'whitespace': case 'whitespace':
return new List(str.trim().split(/[\t\r\n ]+/)); return new List(str.trim().split(/[\t\r\n ]+/));
case 'character': case 'letter':
del = ''; del = '';
break; break;
default: default: