json-repair 0.11.0__tar.gz → 0.11.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: json_repair
3
- Version: 0.11.0
3
+ Version: 0.11.1
4
4
  Summary: A package to repair broken json strings
5
5
  Author-email: Stefano Baccianella <4247706+mangiucugna@users.noreply.github.com>
6
6
  License: MIT License
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.0"]
3
3
  build-backend = "setuptools.build_meta"
4
4
  [project]
5
5
  name = "json_repair"
6
- version = "0.11.0"
6
+ version = "0.11.1"
7
7
  license = {file = "LICENSE"}
8
8
  authors = [
9
9
  { name="Stefano Baccianella", email="4247706+mangiucugna@users.noreply.github.com" },
@@ -216,6 +216,7 @@ class JSONParser:
216
216
  char = self.get_char_at()
217
217
  else:
218
218
  self.remove_char_at(-1)
219
+ self.index -= 1
219
220
  # ChatGPT sometimes forget to quote links in markdown like: { "content": "[LINK]("https://google.com")" }
220
221
  if (
221
222
  char == rstring_delimiter
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: json_repair
3
- Version: 0.11.0
3
+ Version: 0.11.1
4
4
  Summary: A package to repair broken json strings
5
5
  Author-email: Stefano Baccianella <4247706+mangiucugna@users.noreply.github.com>
6
6
  License: MIT License
@@ -105,6 +105,7 @@ def test_repair_json():
105
105
  assert repair_json('````{ "key": "value" }```') == '{"key": "value"}'
106
106
  assert repair_json(r'{"real_content": "Some string: Some other string Some string <a href=\"https://domain.com\">Some link</a>"') == r'{"real_content": "Some string: Some other string Some string <a href=\\\"https://domain.com\\\">Some link</a>"}'
107
107
  assert repair_json('{"key\_1\n": "value"}') == '{"key_1\\n": "value"}'
108
+ assert repair_json('{"key\t\_": "value"}') == '{"key\\t_": "value"}'
108
109
 
109
110
 
110
111
 
File without changes
File without changes
File without changes