evilstreak / markdown-js

A Markdown parser for javascript
7.7k stars 863 forks source link

FIX: Update URL regular expression #217

Closed eviltrout closed 10 years ago

eviltrout commented 10 years ago

There is a known CPU bug in the Regexp I previously used. In some circumstances you could use it to chew up lots of CPU with a particularly formed URL.

This fixes it and passes all tests.