diff options
| author | Michael Ball <cycomachead@gmail.com> | 2014-07-17 12:02:07 -0700 |
|---|---|---|
| committer | Michael Ball <cycomachead@gmail.com> | 2014-07-17 12:02:07 -0700 |
| commit | 440cd340a5231e2d3498006f46004058b05af1f8 (patch) | |
| tree | 1ad6e9e7feb634d4a7677ac81c4907336d3cfcff | |
| parent | 4fa53772f5f60cb4e3a0a0c34ecf56836e2f13ca (diff) | |
| download | snap-yow-440cd340a5231e2d3498006f46004058b05af1f8.tar.gz snap-yow-440cd340a5231e2d3498006f46004058b05af1f8.zip | |
Split Block: Add a character option for clarity
This also allows the split block to be used more easily in a HOF
| -rw-r--r-- | blocks.js | 1 | ||||
| -rw-r--r-- | threads.js | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -836,6 +836,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(); } |
