Josee9988 / MinifyAll

A 𝗩𝗦𝗖𝗼𝗱𝗲 𝗺𝗢𝗻𝗢𝗳𝗢𝗲𝗿 for JS, JSON/C, CSS, and HTML, you will love its simplicity! 🌟 π˜Ύπ™€π™’π™₯π™§π™šπ™¨π™¨ and π™œπ™―π™žπ™₯ files and folders πŸ“¦ Reduce your bundle and file sizes with lightning speed ⚑
https://minifyall.jgracia.es/
GNU General Public License v3.0
71 stars 10 forks source link

Minifying JSON is removing spaces inside the prop value #177

Open karamkhoury88 opened 8 months ago

karamkhoury88 commented 8 months ago

🐞 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

  1. Let's have a JSON example of : { "Template": "Hello {{NAME}}" }

  2. Minify this JSON will produce the following result: {"Template":"Hello{{NAME}}"}

  3. The space before {{NAME}} is removed

Expected behaviour

the result must be: {"Template":"Hello {{NAME}}"}

Your environment

welcome[bot] commented 8 months ago

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!