mwunsch/tumblr — pull request #15 by jaycee (2011-10-28 01:20:56+00:00)
Title: Changes header regex to not greedy form.

The regex that sorts out the header by searching for "---.*---" is a greedy regex, but "---" is valid markdown to create an

element. If you have a markdown post written out that you post via tumblr and it has any such element, you end up losing all of the post above the "---".

This change is pretty simple, just switch .* to .*? to make non-greedy.