From 440cd340a5231e2d3498006f46004058b05af1f8 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Thu, 17 Jul 2014 12:02:07 -0700 Subject: Split Block: Add a character option for clarity This also allows the split block to be used more easily in a HOF --- threads.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'threads.js') diff --git a/threads.js b/threads.js index 50abf78..3b7074e 100644 --- a/threads.js +++ b/threads.js @@ -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(); } -- cgit v1.3.1