Skip to content

fix(backtick_code): handle empty code block#5206

Merged
stevenjoezhang merged 1 commit intov7.0.0from
regex
May 20, 2023
Merged

fix(backtick_code): handle empty code block#5206
stevenjoezhang merged 1 commit intov7.0.0from
regex

Conversation

@stevenjoezhang
Copy link
Member

What does it do?

Fix next-theme/hexo-theme-next#653

Screenshots

Pull request tasks

  • Add test cases for the changes.
  • Passed the CI test.

@github-actions
Copy link

How to test

git clone -b regex https://github.com/hexojs/hexo.git
cd hexo
npm install
npm test

@stevenjoezhang stevenjoezhang merged commit c62909d into v7.0.0 May 20, 2023
@stevenjoezhang stevenjoezhang deleted the regex branch May 20, 2023 16:45
@stevenjoezhang stevenjoezhang linked an issue May 23, 2023 that may be closed by this pull request
3 tasks
@yoshinorin yoshinorin added this to the 7.0.0 milestone Jun 2, 2023
@stevenjoezhang
Copy link
Member Author

This pull request may cause ReDoS, we need to investigate the reason or revert it.

Notice the timeout after upgrading to v7.0.0-rc2

截屏2023-07-28 09 27 09

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.

当空代码块时 渲染错误

3 participants