You're right, let's do something like this:

```ruby
branches.split(/\*\s/).detect { |b| b.include?("-#{args[0]}-") }
```