FabricMC / fabric-example-mod

Example Fabric mod
Creative Commons Zero v1.0 Universal
1.63k stars 922 forks source link

Set `escapeBackslash` for `fabric.mod.json` variable expansion #282

Open YoshiRulz opened 4 months ago

YoshiRulz commented 4 months ago

The file seems to be parsed in some capacity, as without this change, the sequence \n (just in the file, not even in the interpolated variable) is replaced with a literal newline, which by the JSON spec isn't allowed in strings.

edit: Sorry about the trailing newline. I wasn't aware GitHub's built-in editor did that. You're welcome to push to my branch to remove it if that's the project convention.

see also FabricMC/fabricmc.net#86