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
Thanks for opening your first issue in Josee9988/project-template! Be sure to follow the issue template and provide every bit of information to help the developers!
karamkhoury88
changed the title
Minifying JSON is removing the space inside the prop value
Minifying JSON is removing spaces inside the prop value
Nov 20, 2023
The issue seems to be related to special JSON characters, for me it happens to the string "Text: Text". Seems the string boundaries are not respected for these kind character combinations.
I am also noticing this issue. When the value is a string starting with a comma followed by space and a html tag, it removes the space. Also when I use a colon, it removes the space. Here is the JSON that I am testing:
🐞 Bug Report
Describe the bug
If the JSON text contains a property value containing a space followed by { e.g. ' {'
the minifying process removes this space
*
To Reproduce
Let's have a JSON example of :
{
"Template": "Hello {{NAME}}"
}
Minify this JSON will produce the following result:
{"Template":"Hello{{NAME}}"}
The space before {{NAME}} is removed
Expected behaviour
the result must be:
{"Template":"Hello {{NAME}}"}
Your environment
The text was updated successfully, but these errors were encountered: