Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

looks like the special characters that are being substituted (!, & et…

…c) are no longer an issue
  • Loading branch information...
commit c7048cc5cdaf8f1be2d71ac680bfeefd5af535bc 1 parent 7b5b4a0
@satb authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 lib/client.js
View
8 lib/client.js
@@ -85,13 +85,9 @@ function encodeSpecialCharacters(filename, options) {
// some reason.
options = options || {}
if(options['no_encoding'] ){
- return filename.replace(/[!'()* ]/g, function (char) {
- return '%' + char.charCodeAt(0).toString(16);
- });
+ return filename;
}else{
- return encodeURI(filename).replace(/[!'()* ]/g, function (char) {
- return '%' + char.charCodeAt(0).toString(16);
- });
+ return encodeURI(filename);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.