pub(crate) fn match_to_array_impl( m: &Match, chars: &[char], input: &str, has_indices: bool, group_names: &[(String, usize)], ) -> Value