Permalink
Browse files

Misses period inside a parameterized path

  • Loading branch information...
1 parent 4dabf3f commit a7317bf69ca353e34109959a012ef0e3a85180ff @deitch committed Apr 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ewsjs.js
View
@@ -346,7 +346,7 @@ var EWS = function() {
}
// replace with the path replacement
if (param_names.length > 0) {
- path = new RegExp("^" + path.replace(PATH_NAME_MATCHER, PATH_REPLACER) + "$");
+ path = new RegExp("^" + path.replace(/\./g,"\\.").replace(PATH_NAME_MATCHER, PATH_REPLACER) + "$");
// we have a regex
handlers.regex.push({fn: handler, path: path, params: param_names});
} else {

0 comments on commit a7317bf

Please sign in to comment.