UNPKG
@commitlint/to-lines
Version:
latest (19.8.1)
19.8.1
19.8.0
19.5.0
19.0.0
18.6.1
18.4.4
18.4.3
18.4.0
18.1.0
18.0.0
17.8.1
17.4.0
17.0.0
16.2.1
16.0.0
15.0.0
14.0.0
13.2.0
13.0.0
12.1.4
12.1.3
12.1.1
12.0.1
12.0.0
11.0.0
10.0.0
9.1.2
9.1.1
9.1.0
9.0.1
9.0.0
8.3.6
8.3.4
8.3.2
8.3.0
8.2.0
8.1.0
8.0.0
7.6.0
7.5.0
7.3.1
7.3.0
7.1.2
7.1.1
7.0.0
6.1.3
6.1.2
6.1.1
6.1.0
6.0.4
6.0.3
6.0.2
6.0.0
5.2.8
Lint your commit messages
commitlint.js.org
conventional-changelog/commitlint
@commitlint/to-lines
/
lib
/
index.js
10 lines
•
264 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
function
toLines
(
input
) {
if
(
typeof
input !==
'string'
) {
return
[]; }
return
input.
split
(
/(?:\r?\n)/
); }
exports
.
default
= toLines;
//# sourceMappingURL=index.js.map