This website requires JavaScript.
Explore
Help
Sign In
codewalker
/
marked
Watch
1
Star
0
Fork
0
You've already forked marked
Code
Pull Requests
Actions
Packages
Releases
Activity
marked
/
test
/
specs
/
redos
/
quadratic_br.cjs
5 lines
99 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Improve worst-case performance of inline.text regex The old regex may take quadratic time to scan for potential line breaks or email addresses starting at every point. Fix it to avoid scanning from points that would have been in the middle of a previous scan. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-04-03 15:08:57 -07:00
module
.
exports
=
{
markdown
:
`
a
${
' '
.
repeat
(
50000
)
}
`
,
chore: consolidate eslint rules (#3368)
2024-07-14 18:54:46 -06:00
html
:
`
<p>a
${
' '
.
repeat
(
50000
)
}
</p>
`
,
Improve worst-case performance of inline.text regex The old regex may take quadratic time to scan for potential line breaks or email addresses starting at every point. Fix it to avoid scanning from points that would have been in the middle of a previous scan. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-04-03 15:08:57 -07:00
}
;
Copy Permalink