aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorIgor Minar2010-11-17 15:09:19 -0800
committerIgor Minar2010-11-18 02:35:28 -0800
commit4491bbdede825df78302301d4689dd73bcf9c256 (patch)
treeae0d7dc480217516660f8ba0bab39101c9b3b877 /docs
parenta6978b201bbc1756b661dd968b3fb1b0d97f5033 (diff)
downloadangular.js-4491bbdede825df78302301d4689dd73bcf9c256.tar.bz2
docs linkifying regexp should not mess up links alreaded converete by markdown
Diffstat (limited to 'docs')
-rw-r--r--docs/collect.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/collect.js b/docs/collect.js
index aa16490b..a4db4ed1 100644
--- a/docs/collect.js
+++ b/docs/collect.js
@@ -169,7 +169,7 @@ function markdown(text) {
if (!text.match(/^<pre>/)) {
text = text.replace(/<angular\/>/gm, '<tt>&lt;angular/&gt;</tt>');
text = new Showdown.converter().makeHtml(text);
- text = text.replace(/(angular\.[\$\w\._\-:]+)/gm, '<a href="#!$1">$1</a>');
+ text = text.replace(/[^#][^!](angular\.[\$\w\._\-:]+)/gm, '<a href="#!$1">$1</a>');
text = text.replace(/(`(ng:[\w\._\-]+)`)/gm, '<a href="#!angular.directive.$2">$1</a>');
parts[i] = text;
}