File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -34,24 +34,17 @@ normalize({
34
34
35
35
### ` normalize(value[, options]) `
36
36
37
- Normalize a word (often a node) for easier comparison. Always
38
- normalises smart apostrophes (` ’ ` ) to straight apostrophes ( ` ' ` ).
39
- And, lowercases alphabetical characters (` [A-Z] ` ).
37
+ Normalize a word (` string ` , [ ` Node ` ] [ node ] , ` Array.<Node> ` ) for easier
38
+ comparison. Always normalises smart apostrophes (` ’ ` ) to straight
39
+ apostrophes ( ` ' ` ) and lowercases alphabetical characters (` [A-Z] ` ).
40
40
41
- ###### Parameters
41
+ ###### ` options.allowApostrophes `
42
42
43
- * ` value ` ([ ` Node ` ] [ node ] , ` Array.<Node> ` , or ` string ` )
44
- — Value to normalize;
45
- * ` options ` (` Object? ` ):
43
+ ` boolean ` , default: ` false ` — Do not strip apostrophes (` ' ` ).
46
44
47
- * ` allowApostrophes ` (` boolean ` , default: ` false ` )
48
- — Do not strip apostrophes (` ' ` );
49
- * ` allowDashes ` (` boolean ` , default: ` false ` )
50
- — Do not strip hyphens (` - ` ).
45
+ ###### ` options.allowDashes `
51
46
52
- ###### Returns
53
-
54
- ` string ` — Normalized value.
47
+ ` boolean ` , default: ` false ` — Do not strip hyphens (` - ` ).
55
48
56
49
## License
57
50
You can’t perform that action at this time.
0 commit comments