mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
fixup! Add overload of wcstringutil::trim that automatically trims whitespace
This commit is contained in:
parent
f702c42068
commit
e04130e145
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ wcstring truncate(const wcstring &input, int max_len, ellipsis_type etype) {
|
|||
}
|
||||
|
||||
wcstring trim(const wcstring &input) {
|
||||
return trim(input, whitespace.c_str());
|
||||
return trim(input, L"\t\v \r\n");
|
||||
}
|
||||
|
||||
wcstring trim(const wcstring &input, const wchar_t *any_of) {
|
||||
|
|
Loading…
Reference in a new issue