diff options
Diffstat (limited to 'MLEB/Translate/resources/js/ext.translate.parsers.js')
-rw-r--r-- | MLEB/Translate/resources/js/ext.translate.parsers.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/MLEB/Translate/resources/js/ext.translate.parsers.js b/MLEB/Translate/resources/js/ext.translate.parsers.js index afcf0c8e..4f38df41 100644 --- a/MLEB/Translate/resources/js/ext.translate.parsers.js +++ b/MLEB/Translate/resources/js/ext.translate.parsers.js @@ -50,19 +50,19 @@ } ); text = text.replace( /\[\[([^\]|]+?)\|(.+?)\]\]/g, function ( match, p1, p2 ) { - var link = $( '<a>' ).html( p2 ).prop( 'href', mw.util.getUrl( p1 ) ); - return $( '<div>' ).append( link ).html(); + var $link = $( '<a>' ).html( p2 ).prop( 'href', mw.util.getUrl( p1 ) ); + return $( '<div>' ).append( $link ).html(); } ); text = text.replace( /\[\[(.+?)\]\]/g, function ( match, p1 ) { - var link = $( '<a>' ).html( p1 ).prop( 'href', mw.util.getUrl( p1 ) ); - return $( '<div>' ).append( link ).html(); + var $link = $( '<a>' ).html( p1 ).prop( 'href', mw.util.getUrl( p1 ) ); + return $( '<div>' ).append( $link ).html(); } ); externals = new RegExp( '\\[((' + protocols + ')[^ ]+) (.+?)\\]', 'g' ); text = text.replace( externals, function ( match, p1, p2, p3 ) { - var link = $( '<a>' ).html( p3 ).prop( 'href', p1 ); - return $( '<div>' ).append( link ).html(); + var $link = $( '<a>' ).html( p3 ).prop( 'href', p1 ); + return $( '<div>' ).append( $link ).html(); } ); text = text.replace( /'''(.+?)'''/g, function ( match, p1 ) { |