We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
last_index
parameters
1 parent 3d0d3ac commit 7817d04Copy full SHA for 7817d04
lib/routes.js
@@ -41,7 +41,7 @@
41
42
clean_path: function(path) {
43
path = path.split("://");
44
- last_index = path.length - 1;
+ var last_index = path.length - 1;
45
path[last_index] = path[last_index].replace(/\/+/g, "/").replace(/\/$/m, '');
46
return path.join("://");
47
},
@@ -109,7 +109,7 @@
109
throw new Error("Too many parameters provided for path");
110
}
111
112
- parameters = this.prepare_parameters(required_parameters, args, opts);
+ var parameters = this.prepare_parameters(required_parameters, args, opts);
113
// Array#indexOf is not supported by IE <= 8, so we use custom method
114
if (Utils.smartIndexOf(optional_parts, 'format') !== -1) {
115
this.set_default_format(parameters);
0 commit comments