We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f59e34 commit 18d96c8Copy full SHA for 18d96c8
src/validate_user_input.py
@@ -8,12 +8,14 @@ def validate_user_input(comment_body):
8
match = re.search(r'```json(.*?)```', comment_body, re.DOTALL)
9
if match:
10
json_content = match.group(1).strip()
11
+ print(json_content)
12
return json_content
13
raise ValueError('No JSON content found in the comment body')
14
15
def convert_to_json(comment_body):
16
# Convert the dictionary back to a JSON string
17
json_str = json.dumps(json.loads(comment_body), indent=4)
18
+ print(json_str)
19
20
# Write the JSON string to a file
21
with open('config.json', 'w') as f:
0 commit comments