# std: Fix edge case in isAbsolute fn family · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/3e7c02edc183a1b869c004d89debcefbd74bcdeb)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 3e7c02edc183a1b869c004d89debcefbd74bcdeb

Requested commit: 3e7c02edc183a1b869c004d89debcefbd74bcdeb

Commit: 3e7c02edc183a1b869c004d89debcefbd74bcdeb

Tree: 6756746aff500c10a876e9becb7e4be878511525

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
std: Fix edge case in isAbsolute fn family

* Empty strings are not considered absolute paths.
* Refactor some common code.

Closes #4382

```

## Parents

- [a697de3eac7fb4bb09e7f2aaee18c916a4eacc07](https://git.cafe/gitcafe/zig/commit/a697de3eac7fb4bb09e7f2aaee18c916a4eacc07?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/3e7c02edc183a1b869c004d89debcefbd74bcdeb?format=markdown)
