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

lib/match_body.js - body.exec is not a function #1004

Closed
halkeye opened this issue Oct 23, 2017 · 3 comments
Closed

lib/match_body.js - body.exec is not a function #1004

halkeye opened this issue Oct 23, 2017 · 3 comments

Comments

@halkeye
Copy link
Contributor

halkeye commented Oct 23, 2017

I'm still not sure why I'm suddenly getting this triggered. My body matches shouldn't be a regexp, but it looks like there's a bug

> (new RegExp()).match
undefined
> (new RegExp()).exec
[Function: exec]

Match is not a function.

I'll look more into the code and see what it should be instead.

@puneetguptanitj
Copy link

puneetguptanitj commented Oct 23, 2017

I am seeing the same issue as well
wondering shouldn't this have a typecheck for string as well
bd38736#diff-f7a7f1f3d9e28ef78a493002d2cb1f73R45

@gr2m
Copy link
Member

gr2m commented Oct 23, 2017

fixed via #1006

@halkeye halkeye closed this as completed Oct 24, 2017
@lock
Copy link

lock bot commented Sep 13, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue and add a reference to this one if it’s related. Thank you!

@lock lock bot locked as resolved and limited conversation to collaborators Sep 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants