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 {
|
data/lib/js_routes/version.rb
CHANGED