js_routes 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@
18
18
  $.each(paramsHash, function(name, value) {
19
19
  var pattern, replacement;
20
20
  if (path.match(new RegExp(":" + name))) {
21
- pattern = "(.*?)\\(?([\\.\\/]?):" + name + "(\\(.*?\\)|[^\\)]*)?\\)?(.*)";
21
+ pattern = "(.*?)\\(?([\\.\\/]?):" + name + "(\\(.*?\\)|[^\\)]*)?(.*)";
22
22
  replacement = "$1$2" + value + "$3$4";
23
23
  return path = path.replace(new RegExp(pattern), replacement);
24
24
  } else {
@@ -1,3 +1,3 @@
1
1
  module JsRoutes
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js_routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: