|
@ -101,6 +101,10 @@ describe('Pathological sequences speed', () => { |
|
|
await test_pattern('[ (]('.repeat(40000)); |
|
|
await test_pattern('[ (]('.repeat(40000)); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('pattern ![[]() repeated', async () => { |
|
|
|
|
|
await test_pattern('![[]()'.repeat(20000)); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
it('nested brackets', async () => { |
|
|
it('nested brackets', async () => { |
|
|
await test_pattern('['.repeat(20000) + 'a' + ']'.repeat(20000)); |
|
|
await test_pattern('['.repeat(20000) + 'a' + ']'.repeat(20000)); |
|
|
}); |
|
|
}); |
|
@ -124,6 +128,10 @@ describe('Pathological sequences speed', () => { |
|
|
it('unclosed links B', async () => { |
|
|
it('unclosed links B', async () => { |
|
|
await test_pattern('[a](b'.repeat(30000)); |
|
|
await test_pattern('[a](b'.repeat(30000)); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('unclosed <!--', async () => { |
|
|
|
|
|
await test_pattern('</' + '<!--'.repeat(100000)); |
|
|
|
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
describe('Markdown-it', () => { |
|
|
describe('Markdown-it', () => { |
|
|