Skip to content

Commit

Permalink
0.23.1, i keep forgetting garbage output
Browse files Browse the repository at this point in the history
  • Loading branch information
mangiucugna committed Jun 2, 2024
1 parent d40dec8 commit a5b880c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "json_repair"
version = "0.23.0"
version = "0.23.1"
license = {file = "LICENSE"}
authors = [
{ name="Stefano Baccianella", email="4247706+mangiucugna@users.noreply.github.com" },
Expand Down
3 changes: 0 additions & 3 deletions src/json_repair/json_repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,3 @@ def from_file(
fd.close()

return jsonobj


repair_json("[]{}")
2 changes: 1 addition & 1 deletion tests/test_json_repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def test_leading_trailing_characters():
```""") == '{"key": "value"}'
def test_multiple_jsons():
assert repair_json("[]{}") == "[[], {}]"
assert repair_json("{}[]") == "[{}, []]"
assert repair_json("{}[]{}") == "[{}, [], {}]"
assert repair_json('{"key":"value"}[1,2,3,True]') == '[{"key": "value"}, ["1,2,3", true]]'
assert repair_json('lorem ```json {"key":"value"} ``` ipsum ```json [1,2,3,True] ``` 42') == '[{"key": "value"}, ["1,2,3", true]]'

Expand Down

0 comments on commit a5b880c

Please sign in to comment.