Skip to main content

split_string_respect_whitespace

Function split_string_respect_whitespace 

Source
pub fn split_string_respect_whitespace<'a>(input: &'a str) -> Vec<&'a str>
Expand description

Splits a string by whitespace, but respects parentheses/braces

E.g. translateX(10px) rotate(90deg) becomes ["translateX(10px)", "rotate(90deg)"]