HomePhorge

fix: exscpe test when passing it to vim syntax match

Description

fix: exscpe test when passing it to vim syntax match

This was causing an issue an invalid regex. Now we are escapeing the
text to make it a valid regex.

There is also a small improvement where we no longer try and highlight
matched words if the "text" is empty.

Ref: #26

Details

Provenance
AdeAttwoodAuthored on Oct 6 2022, 6:45 AM
Parents
R1:03ab57da3b36: test: add more mocks
Branches
Unknown
Tags
Unknown
References
fix/26

Event Timeline