Skip to content

Commit 602f083

Browse files
committed
fix: yearに [null] が混入する問題を修正
1 parent c09564a commit 602f083

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twinte-parser",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "Twinte内部で使用するために開発されたKdBパーサ",
55
"private": false,
66
"main": "dist/index.js",

src/parser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const analyzeYear = (str: string): number[] => {
9898
for (let i = Number(seqRes[1]); i <= Number(seqRes[2]); i++) {
9999
res.push(i)
100100
}
101-
} else {
101+
} else if (//.test(str)) {
102102
res.push(...str.split('・').map(e => Number(e)))
103103
}
104104
return res

0 commit comments

Comments
 (0)