You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • You could run this beforehand...

    String.prototype.replace = function(a,b) {
      var i = this.indexOf(a); 
      if (i<0) return this; 
      return this.substr(0,i)+b+this.substr(i+a.length); 
    }
    
About

Avatar for Gordon @Gordon started