docs: function replaceWithPatterns( src, patterns ){
      return _.reduce(
          patterns,
          function( replacedCode, replacement, pattern ){
              return replacedCode.replace( new RegExp( pattern, "gi" ), replacement, "gi" );
          },
          src
      );
  }