(function(module) {
	"use strict";

	var Youtube = {},
		embed = '<iframe class="youtube-plugin" width="640" height="360" src="http://www.youtube.com/embed/$1" frameborder="0" allowfullscreen></iframe>';

	Youtube.parse = function(postContent, callback) {
		// http://stackoverflow.com/questions/7168987/
		postContent = postContent.replace(/<a href="(?:http:\/\/)?(?:www\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=)?(.+)<\/a>/g, embed);
		callback(null, postContent);
	};

	module.exports = Youtube;
}(module));
@@ -253,16 +253,30 @@
 ) %7B%0A%09%09//
+ modified from
  http://
@@ -365,16 +365,18 @@
 %22(?:http
+s?
 :%5C/%5C/)?(

adjust regex to recognize http or https. closes #1