mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
Merge pull request #951 from monarchdodra/count3
improvements/fixes for count countUntil
This commit is contained in:
commit
1b2b5fb76e
2 changed files with 142 additions and 54 deletions
|
@ -2682,7 +2682,7 @@ string expandTilde(string inputPath)
|
|||
|
||||
// Extract username, searching for path separator.
|
||||
string username;
|
||||
auto last_char = std.algorithm.countUntil(path, dirSeparator[0]);
|
||||
auto last_char = std.string.indexOf(path, dirSeparator[0]);
|
||||
|
||||
if (last_char == -1)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue