Skip to content

Commit ec8d0d9

Browse files
committed
Fix lint errors
1 parent 2f82f5d commit ec8d0d9

File tree

1 file changed

+29
-10
lines changed

1 file changed

+29
-10
lines changed

docs/style-guides/javascript/README.md

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,23 +1945,40 @@ Regular expressions are error prone and difficult to understand without thorough
19451945
* Regular expression: `/^\/((?:\\\/|[^\/])+)\/([imgy]*)$/`
19461946
*
19471947
* `/^\/`
1948-
* - match a string that begins with a `/`
1948+
*
1949+
* - match a string that begins with a `/`
1950+
*
19491951
* `()`
1950-
* - capture
1952+
*
1953+
* - capture
1954+
*
19511955
* `(?:)+`
1952-
* - capture, but do not remember, a group of characters which occur one or more times
1956+
*
1957+
* - capture, but do not remember, a group of characters which occur one or more times
1958+
*
19531959
* `\\\/`
1954-
* - match the literal `\/`
1960+
*
1961+
* - match the literal `\/`
1962+
*
19551963
* `|`
1956-
* - OR
1964+
*
1965+
* - OR
1966+
*
19571967
* `[^\/]`
1958-
* - anything which is not the literal `\/`
1968+
*
1969+
* - anything which is not the literal `\/`
1970+
*
19591971
* `\/`
1960-
* - match the literal `/`
1972+
*
1973+
* - match the literal `/`
1974+
*
19611975
* `([imgy]*)`
1962-
* - capture any characters matching `imgy` occurring zero or more times
1976+
*
1977+
* - capture any characters matching `imgy` occurring zero or more times
1978+
*
19631979
* `$/`
1964-
* - string end
1980+
*
1981+
* - string end
19651982
*
19661983
* @constant
19671984
* @type {RegExp}
@@ -3306,7 +3323,9 @@ function autocorr( vector ) {
33063323
// Do...
33073324

33083325
/**
3309-
* Calculate the auto-correlation of an input vector. To calculate the auto-correlation using an FFT, the data is padded to have length 2^n, where `n` is the next power of 2 greater than the vector length. For more details, consult {@link http://example.com}.
3326+
* Calculate the auto-correlation of an input vector. To calculate the auto-correlation using an FFT, the data is padded to have length 2^n, where `n` is the next power of 2 greater than the vector length. For more details, consult [link][link].
3327+
*
3328+
* [link]: http://example.com
33103329
*
33113330
* @param {number[]} vector - 1d array
33123331
* @returns {number} auto-correlation

0 commit comments

Comments
 (0)