Match the empty string as whitespace too

Change-Id: I1a8ed882021804f62855b9db4368270feebbfc16
This commit is contained in:
Gabriel Wicke 2012-04-16 14:47:56 +02:00
parent 387b3160ca
commit 421ef44621

View file

@ -73,7 +73,7 @@ PostExpandParagraphHandler.prototype.onAny = function ( token, frame, cb ) {
//console.warn( 'PostExpandParagraphHandler.onAny' );
this.tokens.push( token );
if ( token.constructor === CommentTk ||
( token.constructor === String && token.match( /^[\t ]+$/ ) )
( token.constructor === String && token.match( /^[\t ]*$/ ) )
)
{
// Continue with collection..