in Utils/create_files.py [0:0]
def process_react(answer_content, output_dir):
code_blocks = re.findall(r"```[\s\S]*?```", answer_content)
for block in code_blocks:
block_content = block[3:-3].strip()
type_of_file, first_line, file_content = block_content.split('\n', 2)
file_name = first_line.replace('// ', '')
if type_of_file == "css":
continue
if type_of_file == "html":
file_name = first_line.split(' ')[1]
create_file(output_dir, file_name, file_content)