Skip to main content

split_list

Function split_list 

Source
pub fn split_list(raw: &str) -> Vec<String>
Expand description

Split a comma-separated field into trimmed, non-empty entries.

Empty entries are dropped rather than preserved: a trailing comma is how a list looks mid-typing, and it should not turn into an empty option the service then rejects.