Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Related-to: syntax-tree/mdast-util-to-hast#62. Co-authored-by: Nathaniel Hunter <42shadow42@gmail.com>
- Loading branch information
321dc64
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the implementation provided in the following commit, I think this test should include some line breaks, its possible the implementation efficiency breaks down in the presence of edge case matches. For example, you might do
const aTonOfWhitespace = '\na' + ' '.repeat(70_000) + 'b' + ' '.repeat(70_000) + 'c\n'