From f8f436e0a0527348a2bc33bfcd1101c8e89f2a22 Mon Sep 17 00:00:00 2001 From: alisdair sullivan Date: Tue, 20 Mar 2012 23:17:57 -0700 Subject: [PATCH] ok, now it's fixed for older releases --- src/jsx_encoder.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jsx_encoder.erl b/src/jsx_encoder.erl index 35c0af2..f6c0c2f 100644 --- a/src/jsx_encoder.erl +++ b/src/jsx_encoder.erl @@ -24,6 +24,7 @@ -module(jsx_encoder). -export([encoder/3]). +-compile(export_all). -spec encoder(Handler::module(), State::any(), Opts::jsx:opts()) -> jsx:encoder(). @@ -118,8 +119,7 @@ check_string(<>) when C < 16#fdd0 -> check_string(<>) when C > 16#fdef, C < 16#fffe -> check_string(Rest); check_string(<>) - when C > 16#ffff andalso - C =/= 16#fffe andalso C =/= 16#ffff andalso + when C > 16#ffff andalso C =/= 16#1fffe andalso C =/= 16#1ffff andalso C =/= 16#2fffe andalso C =/= 16#2ffff andalso C =/= 16#3fffe andalso C =/= 16#3ffff andalso