Merge "Add <ref> tags to wikitext detection regex"

This commit is contained in:
jenkins-bot 2013-11-08 18:56:24 +00:00 committed by Gerrit Code Review
commit efac869499

View file

@ -729,7 +729,7 @@ ve.init.mw.ViewPageTarget.prototype.checkForWikitextWarning = function () {
} }
text = ve.ce.getDomText( node.$element[0] ); text = ve.ce.getDomText( node.$element[0] );
if ( text.match( /\[\[|\{\{|''|<nowiki|~~~|^==|^\*|^\#/ ) ) { if ( text.match( /\[\[|\{\{|''|<nowiki|<ref|~~~|^==|^\*|^\#/ ) ) {
mw.notify( mw.notify(
$( $.parseHTML( ve.init.platform.getParsedMessage( 'visualeditor-wikitext-warning' ) ) ) $( $.parseHTML( ve.init.platform.getParsedMessage( 'visualeditor-wikitext-warning' ) ) )
.filter( 'a' ).attr( 'target', '_blank' ).end(), .filter( 'a' ).attr( 'target', '_blank' ).end(),