Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

length is null #34

Open
krausz23 opened this issue Oct 26, 2017 · 0 comments
Open

length is null #34

krausz23 opened this issue Oct 26, 2017 · 0 comments

Comments

@krausz23
Copy link

hello, I hope this is a bug.
var matches = pattern.exec(url);
and we want to use the matches.length but sometimes we got a null because the matches hasn't lenght.
If you have time please check this in apidocToSwagger.js file.

so I corrected myself locally:
if(matches) {
for (var j = 1; j < matches.length; j++) {
var key = matches[j].substr(1);
url = url.replace(matches[j], "{" + key + "}");
pathKeys.push(key);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant