mhevery/angular.js — comment on commit ecdd318de78e5f6d235622237feda9f68b3b88e7
File: docs/src/dom.js line 84
By IgorMinar:

you don't need to be a mind reader to read: http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml?showone=Code_formatting#Code_formatting

```
var id = heading.
replace(/\(.*\)/mg, '').
replace(/[^\d\w]/mg, '.').
replace(/-+/gm, '-').
replace(/-*$/gm, '');

anchor = {'id': id};
className = { 'class': id.toLowerCase().replace(/[._]/mg, '-')};
```