diff options
| author | Jens Mönig <jens@moenig.org> | 2014-07-18 15:32:50 +0200 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2014-07-18 15:32:50 +0200 |
| commit | 314c99737f195c1302968cfffc7c94bf8506271d (patch) | |
| tree | 4ce4bbd29315303edc684ac2706181dee24e2694 | |
| parent | 0e02a5ff6021bf6c5a86909b54dfdce50e1e478e (diff) | |
| parent | 80d1e25bee175a06c9379aeff020054b3acb752c (diff) | |
| download | snap-yow-314c99737f195c1302968cfffc7c94bf8506271d.tar.gz snap-yow-314c99737f195c1302968cfffc7c94bf8506271d.zip | |
Merge pull request #516 from cycomachead/split
Split Block: Add a character option for clarity
| -rw-r--r-- | blocks.js | 1 | ||||
| -rw-r--r-- | threads.js | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -848,6 +848,7 @@ SyntaxElementMorph.prototype.labelPart = function (spec) { null, // text false, // numeric? { + 'character' : ['character'], 'whitespace' : ['whitespace'], 'line' : ['line'], 'tab' : ['tab'], @@ -2148,6 +2148,9 @@ Process.prototype.reportTextSplit = function (string, delimiter) { break; case 'whitespace': return new List(str.trim().split(/[\t\r\n ]+/)); + case 'character': + del = ''; + break; default: del = (delimiter || '').toString(); } |
