Help fixing a where clause in Table of Content page

With the new ObjectDecorators, Table of Content template has changed and my where clause removed.
Could someone maybe help fixing this clause where I’d like it to validate one argument OR the other?

---
description: Adds a Table of Contents to pages
tags: template
hooks.top:
  where: 'not pageDecoration.disableTOC or name !=~ /^person\/|^Library|^index/'
  # Show all the way at the top
  order: 0
---
```toc
minHeaders: 3
```

Try (not pageDecoration.disableTOC) and name !=~ /^person\/|^Library|^index/

Thanks! that was it :smiley: