unescape: fix escape validator, add missing \r, \t, \f and \b
@@ -129,6 +129,10 @@ static inline int is_json_escape(char *c)
(*c == '\'') || /* single-quote */
(*c == '\\') || /* solidus */
(*c == 'n') || /* new-line */
+ (*c == 'r') || /* carriage return */
+ (*c == 't') || /* horizontal tab */
+ (*c == 'b') || /* backspace */
+ (*c == 'f') || /* form feed */
(*c == '/') /* reverse-solidus */
);
}
