mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
Match the empty string as whitespace too
Change-Id: I1a8ed882021804f62855b9db4368270feebbfc16
This commit is contained in:
parent
387b3160ca
commit
421ef44621
|
@ -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..
|
||||
|
|
Loading…
Reference in a new issue