mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-27 17:50:44 +00:00
Follow-up Ife5e782bd: Syntax fixes
Change-Id: I0a9d68344b2e5ed5589d421525e6113b72476705
This commit is contained in:
parent
33a3e47adf
commit
9f7fcfd80e
|
@ -466,7 +466,7 @@
|
|||
// Detect if this is really an internal link in disguise
|
||||
match = target.match( $( this ).data( 'articlePathRegex' ) );
|
||||
if ( match && !$( this ).data( 'ignoreLooksInternal' ) ) {
|
||||
buttons = {},
|
||||
buttons = {};
|
||||
buttons[ mw.msg( 'wikieditor-toolbar-tool-link-lookslikeinternal-int' ) ] =
|
||||
function () {
|
||||
$( '#wikieditor-toolbar-link-int-target' ).val( match[ 1 ] ).change();
|
||||
|
@ -486,7 +486,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
escTarget = escapeExternalTarget( target ),
|
||||
escTarget = escapeExternalTarget( target );
|
||||
escText = escapeExternalText( text );
|
||||
|
||||
if ( escTarget === escText ) {
|
||||
|
@ -1141,7 +1141,6 @@
|
|||
} else {
|
||||
|
||||
if ( mode === 'replace' ) {
|
||||
actualReplacement;
|
||||
|
||||
if ( isRegex ) {
|
||||
// If backreferences (like $1) are used, the actual actual replacement string will be different
|
||||
|
|
Loading…
Reference in a new issue