MediaWiki:Gadget-morebits.js: Difference between revisions
Content added Content deleted
imported>Amorymeltzer (Repo at b7da123: add documentation; more documentation; add back accidentally removed function) |
m (rm improper regex flag) |
||
Line 1,242: | Line 1,242: | ||
*/ |
*/ |
||
unbind: function UnbinderUnbind( prefix, postfix ) { |
unbind: function UnbinderUnbind( prefix, postfix ) { |
||
var re = new RegExp( prefix + '(.*?)' + postfix, ' |
var re = new RegExp( prefix + '(.*?)' + postfix, 'g' ); |
||
this.content = this.content.replace( re, Morebits.unbinder.getCallback( this ) ); |
this.content = this.content.replace( re, Morebits.unbinder.getCallback( this ) ); |
||
}, |
}, |