From 1cf235e45373e7ef10c151f05e229f7952d191d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 25 Oct 2011 20:30:56 -0400 Subject: [PATCH] Fixed gist-diff to replace slashes in file names. --- gist-diff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gist-diff.js b/gist-diff.js index 885af5b..185f38a 100644 --- a/gist-diff.js +++ b/gist-diff.js @@ -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" ) }; }