Skip to content

Commit

Permalink
Merge pull request #601 from MeetDOD/issue-600
Browse files Browse the repository at this point in the history
Bug: Unnecessary text and symbols in code output for HTML and javaScript in gemini successfully issue 600
  • Loading branch information
VaibhavArora314 authored Oct 7, 2024
2 parents 997aea6 + dba680c commit 6c70950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/routes/post/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,8 @@ export const aiCustomization = async (req: UserAuthRequest, res: Response) => {
const cssResponse = await cssResult.response;
const jsResponse = await jsResult.response;

const cssText = cssResponse.text();
const jsText = jsResponse.text();
const cssText = cssResponse.text().replace('```html','').replace('```','');
const jsText = jsResponse.text().replace('```javascript','').replace('```','');

res.json({ css: cssText, js: jsText });

Expand Down

0 comments on commit 6c70950

Please sign in to comment.