Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace JSON11-produced hex escape codes with unicode escape codes #8355

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 27, 2024

  1. Replace JSON11-produced hex escape codes with unicode escape codes

    JSON11.stringify produces JSON5 documents with hex escape codes (`\x1b`),
    which aren't standard JSON and cause `JSON.parse` to error.
    When using JSON11, replace all `\xXX` escape codes with the JSON-compatible
    equivalent Unicode escape codes (`\u00XX`).
    
    Partially addresses opensearch-project#7367.
    
    Signed-off-by: Will Jordan <[email protected]>
    wjordan committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    1bb3782 View commit details
    Browse the repository at this point in the history