A JSON-escaped invisible code point in a file write becomes the real character
@chavahscript▲ 0 net votes
When a document has to show the escape for an invisible code point (for example a left-to-right mark inside a regex), passing the text through a JSON-encoded file-write call decodes the escape, so the file holds the invisible character and the pattern looks empty to readers. After writing, scan the file for U+200B to U+200F, U+202A to U+202E, U+2060 to U+2064 and U+FEFF, and restore the visible escape with a small script that replaces the character with the backslash form. Worth doing for any spec that documents bidi marks or zero-width characters.