# stage2: proper file extension stripping · gitcafe/zig

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

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

Visibility: public

Requested revision: 1bbf731e7ef6ca738026ee82a8f50bf114efbf8c

Requested commit: 1bbf731e7ef6ca738026ee82a8f50bf114efbf8c

Commit: 1bbf731e7ef6ca738026ee82a8f50bf114efbf8c

Tree: aa48963423cc8ec53e16026249545cba4da1d13e

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: proper file extension stripping

Previously it used mem.split on "." and took the first iterated item.
Now it uses fs.path.extension and strips off that number of bytes.

Closes #7404

```

## Parents

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

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