Created
          December 1, 2017 17:38 
        
      - 
      
- 
        Save dustinpoissant/6f535d108a16c92f1431fdfd51a8ba16 to your computer and use it in GitHub Desktop. 
Revisions
- 
        dustinpoissant created this gist Dec 1, 2017 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ String.prototype.extract = function(start, finish){ var s = this.indexOf(start); if(s == -1) return ""; var e = this.indexOf(finish, s + start.length); if(e == -1) return ""; return this.substring(s + start.length, e); } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ String.prototype.extract=function(t,n){var r=this.indexOf(t);if(-1==r)return"";var i=this.indexOf(n,r+t.length);return-1==i?"":this.substring(r+t.length,i)};