# Use regex to properly select Go test runnable \(\#13750\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 38fb841d1f4f8d18bdb097a4805398c59759b38a

Requested commit: 38fb841d1f4f8d18bdb097a4805398c59759b38a

Commit: 38fb841d1f4f8d18bdb097a4805398c59759b38a

Tree: 07e02f2a38cc0b1fca3acb4d458734f520576bf8

Author: Connor Finnell

Committer: GitHub

## Message

```
Use regex to properly select Go test runnable (#13750)

This is already done when selecting a subtest; by wrapping the test name
with `^{}$` the runnable will avoid selecting additional tests with the
same prefix.

Without this fix, selecting the runnable for `TestExample` will also run
`TestExample2`.

Release Notes:

- Fixed Golang tasks spawning tests starting with the current function name and not using the exact match.
```

## Parents

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

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