Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pro Docs #3469

Draft
wants to merge 90 commits into
base: main
Choose a base branch
from
Draft

Pro Docs #3469

wants to merge 90 commits into from

Conversation

felixfeng33
Copy link
Collaborator

Checklist

  • yarn typecheck
  • yarn lint:fix
  • yarn test
  • yarn brl
  • yarn changeset
  • ui changelog

Copy link

vercel bot commented Aug 27, 2024

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

Name Status Preview Comments Updated (UTC)
plate ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 18, 2024 1:46pm

Copy link

changeset-bot bot commented Aug 27, 2024

🦋 Changeset detected

Latest commit: 29dee89

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@udecode/plate-selection Patch
@udecode/plate-math Patch
@udecode/plate-callout Patch
@udecode/plate-media Patch
@udecode/plate-ai Patch
@udecode/plate Patch
@udecode/plate-docx Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@felixfeng33 felixfeng33 marked this pull request as draft August 27, 2024 05:55
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

export const deserializeInlineMd = (editor: PlateEditor, text: string) => {
const leadingSpaces = /^\s*/.exec(text)?.[0] || '';
const trailingSpaces = /\s*$/.exec(text)?.[0] || '';

Check failure

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on
library input
may run slow on strings with many repetitions of ' '.

export const stripMarkdownInline = (text: string) => {
// Remove emphasis (bold, italic)
text = text.replaceAll(/(\*\*|__)(.*?)\1/g, '$2');

Check failure

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on
library input
may run slow on strings starting with '__' and with many repetitions of '**a'.
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.

1 participant