[rust-compiler] Bridge: sanitize lone surrogates in JSON, with escaped-backslash protection
Summary: Combines initial sanitization (replacing lone surrogates with �) and regex lookbehind protection (to avoid matching escaped-backslash sequences like literal "\uD83D" in source's extra.raw fields). Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D102193138
M
Mike Vitousek committed
3c192bcaba9f066ed25df0300800ff648738f16c
Parent: eb9debe