// <nowiki>
/* global window: false                                                */
/* jshint bitwise:true, curly:true, eqeqeq:true, latedef:true,
          laxbreak:true,
          nocomma:true, strict:true, undef:true, unused:true           */
( function ( mw, $ ) {
   "use strict";
   $( function() {
      $( "#wpSummary" ).val( function( i, s ) {
            var re;
            if ( s.length > 3  &&
                 s.substring( 0, 2 ) === "/*" ) {
               re = "\\{\\{*:?*(?:(?:Template|Vorlage)*:*)?Anker*\\|*\\}\\}\\s*";
               re = new RegExp( re, "gi" );
               return s.replace( re, "" );
            }
            return s;
                                              } );
                 } );
}( window.mediaWiki, window.jQuery ) );
// </nowiki>