aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/dom.js
diff options
context:
space:
mode:
authorMatias Niemelä2013-05-20 17:02:03 -0400
committerMisko Hevery2013-05-20 14:39:02 -0700
commit5a34464198f1ca108ddd085181a832d3aa181c31 (patch)
tree6b0864c8552275cc9d5d500e1a8d318ce6939cd5 /docs/src/dom.js
parent5f92d4144ea3c8c8fc33e163b3973401b527a4bd (diff)
downloadangular.js-5a34464198f1ca108ddd085181a832d3aa181c31.tar.bz2
fix(ngdocs): fix gen_docs.sh
Diffstat (limited to 'docs/src/dom.js')
-rw-r--r--docs/src/dom.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/src/dom.js b/docs/src/dom.js
index 1bb9578e..94048120 100644
--- a/docs/src/dom.js
+++ b/docs/src/dom.js
@@ -43,8 +43,9 @@ DOM.prototype = {
var headingDepth = this.headingDepth;
for ( var i = 10; i > 0; --i) {
html = html
- .replace(new RegExp('(<\/?h)' + i + '(>)', 'gm'), function(all, start, end){
- return start + (i + headingDepth) + end;
+ .replace(new RegExp('<h' + i + '(.*?)>([\\s\\S]+)<\/h' + i +'>', 'gm'), function(_, attrs, content){
+ var tag = 'h' + (i + headingDepth);
+ return '<' + tag + attrs + '>' + content + '</' + tag + '>';
});
}
this.out.push(html);