chore(doc-gen/angular.io): add ids to members so they can be linked to

Closes #4206
This commit is contained in:
Peter Bacon Darwin
2015-09-16 08:29:14 +01:00
committed by Pete Bacon Darwin
parent 241632aaa1
commit 34aa1425b7
3 changed files with 14 additions and 3 deletions

View File

@ -0,0 +1,8 @@
module.exports = function() {
return {
name: 'toId',
process: function(str) {
return str.replace(/[^(a-z)(A-Z)(0-9)._-]/, '-');
}
};
};