rails-routes-js-utils 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -29,9 +29,9 @@ module Rails
|
|
29
29
|
compiled_match << param_replace
|
30
30
|
end
|
31
31
|
end
|
32
|
-
compiled_match <<
|
32
|
+
compiled_match << '\/?$'
|
33
33
|
compiled_regex = Regexp.new(compiled_match.join());
|
34
|
-
compiled_replace << ";}"
|
34
|
+
compiled_replace << ";}";
|
35
35
|
|
36
36
|
if compiled_regex.match(this_spec) && route.name
|
37
37
|
"addRouteToEnv({name: '#{route.name}', path: #{compiled_regex.inspect} , reqs: #{reqs}, replace: #{compiled_replace.join()}});"
|