sensu / sensu-check-log

The Sensu Go log file monitoring check plugin and asset.
MIT License
2 stars 3 forks source link

fix filepath regexp so that it matches directory as well as filename #19

Closed jspaleta closed 3 years ago

jspaleta commented 3 years ago

The existing implementation of the filepath regexp is actually a filename regexp. This PR changes the implementation to the intended filepath regexp so that you can do regexp matches for directory components of the full file path.

Tests were updated to include a regexp test for subdirectory matching.