# stage2: proper file extension stripping · gitcafe/zig

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

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

Visibility: public

Requested revision: 6ab5bebed1d0808ad8153097332519088d5af95a

Requested commit: 6ab5bebed1d0808ad8153097332519088d5af95a

Commit: 6ab5bebed1d0808ad8153097332519088d5af95a

Tree: c379dc481b9d8cce57e008f2931a20992b9da2d0

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

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

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