FileMonitor icon indicating copy to clipboard operation
FileMonitor copied to clipboard

Fix invalid json with escapes

Open keith opened this issue 3 years ago • 0 comments

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.

keith avatar Oct 09 '22 00:10 keith