Add <ref> tags to wikitext detection regex

Bug: 56755
Change-Id: Ib7279401601147420441e77e4796b94fe91ac956
This commit is contained in:
Roan Kattouw 2013-11-07 17:47:33 -08:00
parent d2da45ec36
commit 6f650d9a61

View file

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