# tmux_filter:matches/2

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_filter.erl#L223
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_filter-matches-2/

```
matches(Prepared, Row)
-spec matches(prepared(), tmux_model:row()) ->
                 {ok, boolean()} | {error, map()}.
```

Evaluate an unmodified captured row against a prepared filter. Returns a Boolean result or tagged context/regex resource error. It performs no tmux I/O and never converts evaluation failure into a nonmatch.

## Parameters

- `Prepared` (`prepared()`)
- `Row` (`tmux_model:row()`)
