mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 18:55:06 +08:00
Use wchar overload of find_last_of
C++ is a silly language.
This commit is contained in:
parent
8b27a69ae4
commit
359b487793
@ -549,7 +549,7 @@ static maybe_t<size_t> find_extension (const wcstring &path) {
|
||||
|
||||
// If we don't have a "." or the "." is the first in the filename,
|
||||
// we do not have an extension
|
||||
size_t pos = filename.find_last_of(L".");
|
||||
size_t pos = filename.find_last_of(L'.');
|
||||
if (pos == wcstring::npos || pos == 0) {
|
||||
return none();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user