hplgit / doconce

Lightweight markup language - document once, include anywhere
http://hplgit.github.io/doconce/doc/web/index.html
Other
309 stars 60 forks source link

Regex fix to replace correctly quotes that contain apostrophes #152

Open pierrethibault opened 6 years ago

pierrethibault commented 6 years ago

I am not a regex pro. It seems to me that ``(.+?)'' is better than ``([^']+?)'' because it allows for apostrophes within the quotes. I hope I'm not missing anything obvious.