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

Regexp#match? #4440

Closed
wants to merge 1 commit into from
Closed

Regexp#match? #4440

wants to merge 1 commit into from

Conversation

sumitmah
Copy link

  • Regexp#match?
    This returns bool and doesn't save backref.

* Regexp#match?
    This returns bool and doesn't save backref.
if (matchResult == -1) {
return runtime.getFalse();
} else {
throw runtime.newRegexpError(exception == null ? "FIXME: missing message" : exception.getMessage());
Copy link
Author

@sumitmah sumitmah Jan 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kares
Copy link
Member

kares commented Jan 17, 2017

Thanks, this is a Ruby 2.4 feature - you should read #4293 and check the appropriate branch (its not yet to be merged onto master - will be at some point later probably after 9.1.8 is released).
You'll find there that the match? feature is already implemented there. Closing as duplicate.

@kares kares closed this Jan 17, 2017
@kares kares added this to the Invalid or Duplicate milestone Jan 17, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants