Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Trim readme lines in linear time
The heading pattern backtracked over a run of spaces in cubic time and the cell trim in quadratic time, so one crafted line in a readme could hold a request for half an hour, well inside the size cap. The heading rule now also keeps a sharp that ends a word, as in "# C#".
-rw-r--r--custom/extensions/about-render.lua28
-rw-r--r--tests/extensions/test-about-render.lua10
2 files changed, 36 insertions, 2 deletions