FIX: auto-quote should not trigger when the first " is preceded by bbcode-like garbage.

This commit is contained in:
Jens Maier
2014-07-27 15:57:40 +02:00
parent b19ad15086
commit 9124cf0eaf
2 changed files with 2 additions and 1 deletions

View File

@@ -662,7 +662,7 @@
return [consumed, null, nodes];
}
var res = this.dialect.inline.__oneElement__.call(this, text.substr( consumed ), patterns );
var res = this.dialect.inline.__oneElement__.call(this, text.substr( consumed ), patterns, [text.substr(0, consumed)]);
consumed += res[ 0 ];
// Add any returned nodes.
nodes.push.apply( nodes, res.slice( 1 ) );