mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-04-08 17:11:02 +00:00
fix(docs): generate correct ids on h elements to get scrolling working
This commit is contained in:
parent
15fd735793
commit
e7a23e4b65
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ DOM.prototype = {
|
|||
if (typeof heading == 'string') {
|
||||
var id = heading.
|
||||
replace(/\(.*\)/mg, '').
|
||||
replace(/[^\d\w]/mg, '.').
|
||||
replace(/[^\d\w\$]/mg, '.').
|
||||
replace(/-+/gm, '-').
|
||||
replace(/-*$/gm, '');
|
||||
anchor = {'id': id};
|
||||
|
|
|
|||
Loading…
Reference in a new issue