Skip to main content

trim_alias_value

Function trim_alias_value 

Source
pub fn trim_alias_value(value: &[u8]) -> Vec<u8> ⓘ
Expand description

What: An alias value with surrounding whitespace removed, as JavaScript’s .trim() does for text; a value that is not UTF-8 loses only ASCII whitespace. Why: The incumbent trims git config --get output, newline included, before splitting.

In TS you’d write (pseudocode):

value.trim()