Skip to content

catastrophic backtracking in RegExp when editing markdown files #110297

@erik-krogh

Description

@erik-krogh

Pasting the below into a markdown file will cause a cpu thread to be pinned at 100% because of catastrophic backtracking.

# [foo](bar()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()

#109964 fixes it.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggrammarSyntax highlighting grammarinsiders-releasedPatch has been released in VS Code InsidersmarkdownMarkdown support issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions