1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | "use strict";
|
7 |
|
8 | exports.__esModule = true;
|
9 | exports.isNewLine = isNewLine;
|
10 | var lineBreak = /\r\n?|\n|\u2028|\u2029/;
|
11 | exports.lineBreak = lineBreak;
|
12 | var lineBreakG = new RegExp(lineBreak.source, "g");
|
13 |
|
14 | exports.lineBreakG = lineBreakG;
|
15 |
|
16 | function isNewLine(code) {
|
17 | return code === 10 || code === 13 || code === 0x2028 || code === 0x2029;
|
18 | }
|
19 |
|
20 | var nonASCIIwhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
21 | exports.nonASCIIwhitespace = nonASCIIwhitespace; |
\ | No newline at end of file |