File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
utils/doclint/preprocessor Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -690,7 +690,7 @@ page.removeListener('request', logRequest);
690
690
```
691
691
692
692
<!-- GEN:toc -->
693
- - [ event: '_ videostarted'] ( #event-videostarted )
693
+ - [ event: '_ videostarted'] ( #event-_videostarted )
694
694
- [ event: 'close'] ( #event-close-1 )
695
695
- [ event: 'console'] ( #event-console )
696
696
- [ event: 'crash'] ( #event-crash )
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ configurations for common CI providers.
15
15
* [ Bitbucket Pipelines] ( #bitbucket-pipelines )
16
16
* [ GitLab CI] ( #gitlab-ci )
17
17
- [ Caching browsers] ( #caching-browsers )
18
- - [ Exception: ` node_modules ` are cached] ( #exception-nodemodules -are-cached )
18
+ - [ Exception: ` node_modules ` are cached] ( #exception-node_modules -are-cached )
19
19
- [ Directories to cache] ( #directories-to-cache )
20
20
- [ Debugging browser launches] ( #debugging-browser-launches )
21
21
- [ Running headful] ( #running-headful )
@@ -102,7 +102,7 @@ Suggested configuration
102
102
Chromium in non-headless mode (e.g. to test Chrome Extensions)
103
103
1. If your project does not have `package-lock.json`, Travis would be auto-caching
104
104
` node_modules` directory. If you run `npm install` (instead of `npm ci`), it is
105
- possible that the browser binaries are not downloaded. Fix this with [these steps](#exception-nodemodules -are-cached) outlined below.
105
+ possible that the browser binaries are not downloaded. Fix this with [these steps](#exception-node_modules -are-cached) outlined below.
106
106
107
107
To sum up, your `.travis.yml` might look like this :
108
108
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ function getTOCEntriesForText(text) {
90
90
for ( const { line, offset} of titles ) {
91
91
const [ , nesting , name ] = line . match ( titleRegex ) ;
92
92
const delinkifiedName = name . replace ( / \[ ( [ ^ \] ] + ) \] \( [ ^ ) ] + \) / g, '$1' ) ;
93
- const id = delinkifiedName . trim ( ) . toLowerCase ( ) . replace ( / \s / g, '-' ) . replace ( / [ ^ - 0 - 9 a - z а - я ё ] / ig, '' ) ;
93
+ const id = delinkifiedName . trim ( ) . toLowerCase ( ) . replace ( / \s / g, '-' ) . replace ( / [ ^ - _ 0 - 9 a - z а - я ё ] / ig, '' ) ;
94
94
let dedupId = id ;
95
95
let counter = 0 ;
96
96
while ( ids . has ( dedupId ) )
You can’t perform that action at this time.
0 commit comments