sciencemine / digital-signage

4 stars 0 forks source link

JSON.stringify needs to properly replace " and ' #108

Closed HumbleHominid closed 7 years ago

HumbleHominid commented 7 years ago

Currently, " is replaced with or and ' is replaced with or depending on if it is on the right-hand side or the left-hand side. This should be able to be resolved by writing a custom replacer for JSON.stringify that replaces " with \" and ' with \'.

HumbleHominid commented 7 years ago

Fixed with https://github.com/sciencemine/digital-signage/commit/837b75e00bc0c9de9949b1b19ea0fed90235b32f