mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
fixup previous commit
This commit is contained in:
parent
2636876472
commit
cf570d4b11
1 changed files with 1 additions and 1 deletions
|
@ -2415,7 +2415,7 @@ bool valid_var_name_char(wchar_t chr) { return fish_iswalnum(chr) || chr == L'_'
|
|||
|
||||
/// Test if the given string is a valid variable name.
|
||||
bool valid_var_name(const wcstring &str) {
|
||||
return std::find_if(str.begin(), str.end(), valid_var_name_char) == str.end();
|
||||
return std::find_if_not(str.begin(), str.end(), valid_var_name_char) == str.end();
|
||||
}
|
||||
|
||||
/// Test if the string is a valid function name.
|
||||
|
|
Loading…
Reference in a new issue