You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Use case: I started with a plain ol' JS object, which I then wanted to convert to a separate JSON file. My JS object used single quoted strings as values. When I copy it to the JSON file, I want to use toggle-quotes to convert all of these invalid single-quoted strings to valid double-quoted strings. However, this only works on keys, not values. toggle-quotes can toggle quotes normally on JSON keys, but can only toggle from double-quotes to single-quotes for JSON values - it can't toggle from single-quotes to double-quotes.
Steps to reproduce:
Create JSON file with single-quote string attribute values.
Try running toggle-quotes (either via the keyboard shortcut or via the command palette) on any of these values.
Ubuntu 14.04.1 LTS
The text was updated successfully, but these errors were encountered:
Toggling "foo" is fine, but the 8 in ba8r breaks the invalid range and prevents this package from recognising it as a string. The same goes for anything that is potentially valid JSON syntax (e.g., ba{r)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Use case: I started with a plain ol' JS object, which I then wanted to convert to a separate JSON file. My JS object used single quoted strings as values. When I copy it to the JSON file, I want to use toggle-quotes to convert all of these invalid single-quoted strings to valid double-quoted strings. However, this only works on keys, not values. toggle-quotes can toggle quotes normally on JSON keys, but can only toggle from double-quotes to single-quotes for JSON values - it can't toggle from single-quotes to double-quotes.
Steps to reproduce:
Ubuntu 14.04.1 LTS
The text was updated successfully, but these errors were encountered: