diff --git a/squirt.js b/squirt.js index 270581e..e98fa86 100644 --- a/squirt.js +++ b/squirt.js @@ -240,7 +240,7 @@ sq.host = window.location.search.match('sq-dev') ? return function textToNodes(text) { text = "3\n 2\n 1\n " + text.trim('\n').replace(/\s+\n/g,'\n'); return text - .replace(/[\,\.\!\:\;](?![\"\'\)\]\}])/g, "$& ") + .replace(/[\,\.\!\:\;](?![\"\'\)\]\}\w])/g, "$& ") .split(/[\s]+/g) .filter(function(word){ return word.length; }) .map(wordToNode);