You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/md/parse/options/trim.md
+31-7Lines changed: 31 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,37 @@ The `trim` option ignore whitespace characters immediately around the [delimiter
19
19
- Since: early days
20
20
- Related: `ltrim`, `rtrim`— see [Available Options](/parse/options/#available-options)
21
21
22
-
The characters interpreted as whitespaces are identical to the `\s` meta character in regular expressions:
23
-
24
-
- Horizontal tab, `String.fromCharCode(9)`
25
-
- NL line feed, new line, `String.fromCharCode(10)`
26
-
- NP Form feed, new page, `String.fromCharCode(12)`
27
-
- Carriage return, `String.fromCharCode(13)`
28
-
- Space, `String.fromCharCode(32)`
22
+
The characters interpreted as trimable are ECMAScript [whitespaces](https://tc39.es/ecma262/#sec-white-space) and [line terminator set](https://tc39.es/ecma262/#sec-line-terminators).
0 commit comments