kuanyui / tldr.el

tldr client for Emacs
142 stars 16 forks source link

Fix infinite loop in Markdown rendering #11

Closed nonsequitur closed 8 years ago

kuanyui commented 8 years ago

Thanks! btw, could you give me an example of infinite loop?

nonsequitur commented 8 years ago

Yes, see the second line from the commit message:

This fixes an infinite loop when rendering the docs for 'find'`

Reason: When searching for {{'*.py'}}, * is interpreted as a regexp quantifier and the original string never gets replaced.

kuanyui commented 8 years ago

OAO I never notice the Regexp issue like that after writing 3 years Emacs Lisp...