lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js in gollum-2.3.4 vs lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js in gollum-2.3.5
- old
+ new
@@ -106,11 +106,12 @@
var markdown = 'markdown';
var txt = editorSession.getValue();
var msg = defaultCommitMessage();
var newLocation = baseUrl;
+ // Remove all duplicate slashes
function clean( str ) {
- return str.replace(/^\/+/, '/');
+ return str.replace(/\/+/g, '/');
}
// 'a%2Fb' => a/b
if ( pathName ) {
pathName = unescape( pathName );