Fix for Urlencoding utils, checking for character that doesn't need encoding
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/9c5e4379 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/9c5e4379 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/9c5e4379 Branch: refs/heads/Query-UI-Cleanup Commit: 9c5e4379ffc4fa2e935317ee4024ca5e4d574402 Parents: 9f6a919 Author: suelockwood <[email protected]> Authored: Tue Apr 8 14:20:03 2014 -0400 Committer: suelockwood <[email protected]> Committed: Tue Apr 8 14:20:03 2014 -0400 ---------------------------------------------------------------------- src/fauxton/app/core/utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/9c5e4379/src/fauxton/app/core/utils.js ---------------------------------------------------------------------- diff --git a/src/fauxton/app/core/utils.js b/src/fauxton/app/core/utils.js index 44945e8..6bc8aea 100644 --- a/src/fauxton/app/core/utils.js +++ b/src/fauxton/app/core/utils.js @@ -12,7 +12,7 @@ // This file creates a set of helper functions that will be loaded for all html -// templates. These functions should be self contained and not rely on any +// templates. These functions should be self contained and not rely on any // external dependencies as they are loaded prior to the application. We may // want to change this later, but for now this should be thought of as a // "purely functional" helper system. @@ -58,7 +58,7 @@ function($, _ ) { addWindowResize: function(fun, key){ onWindowResize[key]=fun; - // You shouldn't need to call it here. Just define it at startup and each time it will loop + // You shouldn't need to call it here. Just define it at startup and each time it will loop // through all the functions in the hash. //app.initWindowResize(); }, @@ -84,7 +84,7 @@ function($, _ ) { safeURLName: function(name){ var testName = name || ""; - var checkforBad = testName.match(/[\$\-/_,+-]/g); + var checkforBad = testName.match(/[\$\-/,+-]/g); return (checkforBad !== null)?encodeURIComponent(name):name; } };
