# Adjust string splitting function \(\#10221\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/5e447486772727062348cf2ea298663f51ad65f0)

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

Visibility: public

Requested revision: 5e447486772727062348cf2ea298663f51ad65f0

Requested commit: 5e447486772727062348cf2ea298663f51ad65f0

Commit: 5e447486772727062348cf2ea298663f51ad65f0

Tree: 8b553e6f89633f6e3f3937e24626155ada15ba23

Author: Hans

Committer: GitHub

## Message

```
Adjust string splitting function (#10221)

- Fixed #9729 and #10193

This commit fixes an issue where the string splitting function was
handling characters in the input string improperly. We adjusted the use
of the `take_while` function to calculate the length of the numeric
prefix, rather than directly splitting the string, thus correctly
splitting the string into a numeric prefix part and the remaining part
```

## Parents

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

[Source at this commit](https://git.cafe/gitcafe/zed/tree/5e447486772727062348cf2ea298663f51ad65f0?format=markdown)
