Skip to content

Commit 512d21b

Browse files
committed
sanitise; replace [] with Array
1 parent 6fe0bbd commit 512d21b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ const httpVerbs = [
159159
];
160160

161161
function sanitise(s) {
162+
s = s.replace('[]','Array');
162163
var components = s.split('/');
163164
components[0] = components[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm, '_');
164165
return components.join('/');

0 commit comments

Comments
 (0)