Allow port number (i.e. colon) in url
diff --git a/plugins/autolinker/prism-autolinker.js b/plugins/autolinker/prism-autolinker.js
index 0d96c5c..21c1bdd 100644
--- a/plugins/autolinker/prism-autolinker.js
+++ b/plugins/autolinker/prism-autolinker.js
@@ -4,7 +4,7 @@ if (!self.Prism) {
return;
}
-var url = /\b([a-z]{3,7}:\/\/|tel:)[\w-+%~/.]+/,
+var url = /\b([a-z]{3,7}:\/\/|tel:)[\w-+%~/.:]+/,
email = /\b\S+@[\w.]+[a-z]{2}/,
linkMd = /\[([^\]]+)]\(([^)]+)\)/,
@@ -58,4 +58,4 @@ Prism.hooks.add('wrap', function(env) {
}
});
-})();
\ No newline at end of file
+})();