summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
authorJens Mönig <jens@moenig.org>2014-07-18 15:32:50 +0200
committerJens Mönig <jens@moenig.org>2014-07-18 15:32:50 +0200
commit314c99737f195c1302968cfffc7c94bf8506271d (patch)
tree4ce4bbd29315303edc684ac2706181dee24e2694 /threads.js
parent0e02a5ff6021bf6c5a86909b54dfdce50e1e478e (diff)
parent80d1e25bee175a06c9379aeff020054b3acb752c (diff)
downloadsnap-yow-314c99737f195c1302968cfffc7c94bf8506271d.tar.gz
snap-yow-314c99737f195c1302968cfffc7c94bf8506271d.zip
Merge pull request #516 from cycomachead/split
Split Block: Add a character option for clarity
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/threads.js b/threads.js
index 50abf78..24d4196 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();
}