File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 3
3
* @typedef {import('nlcst').Content } Content
4
4
* @typedef {Root|Content } Node
5
5
*
6
- * @typedef { Object } NormalizeOptions
6
+ * @typedef Options
7
7
* @property {boolean } [allowDashes=false]
8
8
* @property {boolean } [allowApostrophes=false]
9
+ *
10
+ * @typedef {Options } NormalizeOptions
11
+ * Deprecated form of `Options`.
9
12
*/
10
13
11
14
import { toString } from 'nlcst-to-string'
12
15
13
16
/**
14
- * @param {string|Node|Array. <Content> } node
17
+ * @param {string|Node|Array<Content> } node
15
18
* @param {NormalizeOptions } [options={}]
16
19
*/
17
20
export function normalize ( node , options ) {
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ There is no default export.
49
49
50
50
### ` normalize(value[, options]) `
51
51
52
- Normalize a word (` string ` , [ ` Node ` ] [ node ] , ` Array. <Node> ` ) for easier
52
+ Normalize a word (` string ` , [ ` Node ` ] [ node ] , ` Array<Node> ` ) for easier
53
53
comparison.
54
54
Always normalizes smart apostrophes (` ’ ` ) to straight apostrophes (` ' ` ) and
55
55
lowercases alphabetical characters (` [A-Z] ` ).
You can’t perform that action at this time.
0 commit comments