Skip to content

Commit 4aef5b7

Browse files
author
lucifer
committed
fix: trim
1 parent 692b91d commit 4aef5b7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

static/solution/generate.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ const solutions = {};
66

77
function toArray(sep = "-", txt) {
88
if (!txt) return txt;
9-
return txt.split(sep).slice(1);
9+
return txt
10+
.split(sep)
11+
.slice(1)
12+
.map((v) => String.prototype.trim.call(v));
1013
}
1114

1215
function getParenceDataReg() {

static/solution/solutions.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)