FileMonitor
FileMonitor copied to clipboard
Fix invalid json with escapes
If your command opening a file contained some regex such as:
grep -iqE '^[^TXZ ]+ +(\S+\/)?g?(view|n?vim?x?)(diff)?$' foo.txt
The json would fail to pretty print because of the invalid escape sequences. This escapes those manually.