Yarr::Parser::tryConsumeGroupName() should check for the end of the pattern.