Skip to content
This repository has been archived by the owner on Mar 12, 2023. It is now read-only.

Minify Selection cause an error (incorrect JSON format result) #123

Open
bluedasher13 opened this issue Apr 4, 2021 · 0 comments
Open

Comments

@bluedasher13
Copy link

In a JSON file, if I run the command Minify: Selection:

  • before minified:
{
    "autoload": {
        "psr-4": {
            "App\\something": "app\\something"
        }
    }
}
  • after minified:
{"autoload":{"psr-4":{"App\something":"app\something"}}}
  • expected:
{"autoload":{"psr-4":{"App\\something":"app\\something"}}}

It will cause an error after minified: Invalid escape character in string.

Because the double backslashes \\ has been stripped.

If this extension doesn't support JSON minifying, The Minify: Selection command should be disabled in the JSON editors.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant