I have the following silverbullet structure:
- Root folder
- Performance
- John
- Marta
- Person
- john.md
- marta,md
- Performance
I am trying to build a query where inside john.md I can show the documents linked to his performance.
So, inside john.md I have something like:
```include
page: "[[Library/Personal/Query/1-1-section-report]]"
```
And Library/Personal/Query/1-1-section-report.md
is looking like this:
---
tags: template
---
## Incoming tasks
```query
task where name =~ /{{escapeRegexp (@page.name)}}/ where done = false render [[Library/Personal/Query/Task]]
```
---
## Performance reviews
```query
page where name =~ /Performance/{{escapeRegexp (@page.name)}}\/ select name order by name desc render [[Library/Core/Query/Page]]
```
My problem is in the ## Perfomance reviews query, as the escapeRegexp
is not working in this case because it translates it to:
name =~ /Performance/person/john/
notice the person/
part within the result.
Does anyone know how to modify the query and escapeRegexp to exclude person/
from it?
Thanks