Skip to content

Commit

Permalink
Removed the decoding in the 'Path' class
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienCastex committed Jul 31, 2017
1 parent b4ce22d commit ad5c8a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/manager/v2/Path.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
var Path = (function () {
function Path(path) {
if (path.constructor === String) {
var sPath = decodeURI(path);
var sPath = path;
var doubleIndex = void 0;
while ((doubleIndex = sPath.indexOf('//')) !== -1)
sPath = sPath.substr(0, doubleIndex) + sPath.substr(doubleIndex + 1);
Expand Down
2 changes: 1 addition & 1 deletion src/manager/v2/Path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class Path
{
if(path.constructor === String)
{
let sPath = decodeURI((path as string));
let sPath = path as string;
let doubleIndex;
while((doubleIndex = sPath.indexOf('//')) !== -1)
sPath = sPath.substr(0, doubleIndex) + sPath.substr(doubleIndex + 1);
Expand Down

0 comments on commit ad5c8a6

Please sign in to comment.