浏览代码

support links as well.

Lucas Stadler 11 年之前
父节点
当前提交
39307e8b3d
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      js/babl/public/index.html

+ 8 - 0
js/babl/public/index.html

@ -64,6 +64,14 @@
64 64
					el.src = match[0];
65 65
					return el;
66 66
				}
67
			}, {
68
				re: /https?:\/\/.*/,
69
				fn: function(match) {
70
					var el = document.createElement("a");
71
					el.href = match[0];
72
					el.textContent = match[0];
73
					return el;
74
				}
67 75
			}, { re: /.*/, fn: function(match) { return new Text(match[0]); }}];
68 76
69 77
			function expandWord(word) {