Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

Commit

Permalink
v3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
alisdair sullivan committed Dec 6, 2014
1 parent f564271 commit 072db00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# exjsx (v3.0.1) #
# exjsx (v3.0.2) #

[json][json] for [elixir][elixir]

Expand Down
4 changes: 1 addition & 3 deletions lib/jsx.ex
@@ -1,5 +1,3 @@
import :lists, only: [flatten: 1]

defmodule JSX do
def encode!(term, opts \\ []) do
parser_opts = :jsx_config.extract_config(opts ++ [:escaped_strings])
Expand Down Expand Up @@ -66,7 +64,7 @@ defmodule JSX do

def is_term?(term, opts \\ []) do
parser_opts = :jsx_config.extract_config(opts)
parser(:jsx_verify, opts, parser_opts).(flatten(JSX.Encoder.json(term) ++ [:end_json]))
parser(:jsx_verify, opts, parser_opts).(JSX.Encoder.json(term) ++ [:end_json])
rescue
_ -> false
end
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Expand Up @@ -3,7 +3,7 @@ defmodule JSX.Mixfile do

def project do
[ app: :exjsx,
version: "3.0.1",
version: "3.0.2",
elixir: ">= 0.13.3",
description: description,
package: package,
Expand Down

0 comments on commit 072db00

Please sign in to comment.