| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
JRuby skipped named capture groups that did not participate in the match (value is nil). With nil argument, such keys were omitted entirely. With explicit keys, iteration stopped at the first non-participating capture. CRuby includes non-participating captures with nil values in all cases. This is important for pattern matching where the absence of a key means "does not match" while nil means "matched nothing".
There was a problem hiding this comment.
Consider moving specs to ruby/spec.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
JRuby skipped named capture groups that did not participate in the match (value is nil).
With nil argument, such keys were omitted entirely. With explicit keys, iteration stopped at the first non-participating capture.
CRuby includes non-participating captures with nil values in all cases. This is important for pattern matching where the absence of a key means "does not match" while nil means "matched nothing".