llamacoder
llamacoder copied to clipboard
fix for syntax errors due to md language tags
updated regex issue and tested it on https://regex101.com
here is the final regex
/```(tsx|typescript|javascript)/g
@kamaravichow is attempting to deploy a commit to the Hassanteam Team on Vercel.
A member of the Team first needs to authorize it.
If even this doesn't work how about
text = text.replace("```tsx", "");
text = text.replace("```typescript", "");
text = text.replace("```javascript", "");
text = text.replace("```", "");
The question mark in the below regex has to be present for it to work as intended:
text = text.replace(/```(tsx|typescript|javascript)?/g, "");