Fixed. Just needed to split grants more intelligently: if any column-level grants, then use a regex to match each grant, else use simple split(", ", $grants) as before. The given test case was failing before but works now.
Fixed. Just needed to split grants more intelligently: if any column-level grants, then use a regex to match each grant, else use simple split(", ", $grants) as before. The given test case was failing before but works now.