Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Use decodeURI instead of decodeURIComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisKehrig committed Oct 3, 2012
1 parent c5170f2 commit e41de4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LiveDevelopment/Agents/GotoAgent.js
Expand Up @@ -169,7 +169,7 @@ define(function GotoAgent(require, exports, module) {
// Extract the path, also strip the third slash when on Windows
var path = url.slice(brackets.platform === "win" ? 8 : 7);
// URL-decode the path ('%20' => ' ')
path = decodeURIComponent(path);
path = decodeURI(path);
var promise = DocumentManager.getDocumentForPath(path);
promise.done(function onDone(doc) {
DocumentManager.setCurrentDocument(doc);
Expand Down

0 comments on commit e41de4a

Please sign in to comment.