Skip to content

Conversation

@sastaachar
Copy link
Collaborator

No description provided.

@vercel
Copy link

vercel bot commented May 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
developer-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 24, 2023 5:23am

const matches = text.match(/{@link [^{]+}/g);
if (!matches) return text;
const updatedText = matches?.reduce((prevUpdatedText, curLinkText) => {
const linkTo = curLinkText.split(' ')[1].replace('}', '');

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding

This replaces only the first occurrence of '}}'.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants