mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
Merge "Add <ref> tags to wikitext detection regex"
This commit is contained in:
commit
efac869499
|
@ -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(),
|
||||||
|
|
Loading…
Reference in a new issue