# check-object: remove wildcard matchers as they are too clunky · gitcafe/zig

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

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

Visibility: public

Requested revision: e8b613783f383b39018cb83b2b141f991c2bc7ae

Requested commit: e8b613783f383b39018cb83b2b141f991c2bc7ae

Commit: e8b613783f383b39018cb83b2b141f991c2bc7ae

Tree: 32e270a33ac83e44ba3258975960ba5968914c42

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
check-object: remove wildcard matchers as they are too clunky

Instead, we now have a looser helper called `checkContains(...)`
that will match on any occurrence similarly to `std.mem.indexOf()`.

While at it, I have cleaned up other combinators to make the entire
API more consistent, and so:
* `checkStart(phrase)` is now `checkStart()` followed by
`checkExact(phrase)`
* `checkNext(phrase)` if matching exactly is now `checkExact(phrase)`
* `checkNext(phrase)` if matching loosely is now `checkContains(phrase)`
* `checkNext(phrase)` if matching exactly with var extractors is now
`checkExtract(phrase)`

Finally, `ElfDumper` is now dumping contents of `.symtab` and `.dynsym`
symbol tables. I have also removed dumping of symtabs as optional - they
are now always dumped which cleaned up the implementation even more.

```

## Parents

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

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