Skip to content

Commit

Permalink
Fixed gist-diff to replace slashes in file names.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Oct 26, 2011
1 parent 20cacd1 commit 1cf235e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gist-diff.js
Expand Up @@ -14,7 +14,7 @@ getAuth(function( username, password ) {
diff( args, function( error, parsedDiff ) {
var files = {};
for ( var file in parsedDiff ) {
files[ file + ".diff" ] = {
files[ file.replace( /\//g, "-" ) + ".diff" ] = {
content: parsedDiff[ file ].join( "\n" )
};
}
Expand Down

0 comments on commit 1cf235e

Please sign in to comment.