Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Returns nil instead of regex match group inside conditional #2787
Problem with DBI gem under jruby-188.8.131.52.pre
def parse_url(driver_url) if driver_url =~ /^(DBI|dbi):([^:]+)(:(.*))$/ [$2, $4] else raise InterfaceError, "Invalid Data Source Name" end end parse_url("dbi:jdbc:sqlite")
returns [nil, nil] instead of ["jdbc", "sqlite"]
Randomly guessing this was an IR bug and not a regexp problem. I do not see this issue anymore on HEAD:
The syntax is a little arcane but I am testing startup interpreter, full interpreter, and JIT. Resolving.