Skip to main content

split_string_respect_whitespace

Function split_string_respect_whitespace 

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

Splits a string by whitespace, but respects parentheses/braces

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