We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb33a4f commit 4300e1cCopy full SHA for 4300e1c
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "twinte-parser",
3
- "version": "2.1.0",
+ "version": "2.1.1",
4
"description": "Twinte内部で使用するために開発されたKdBパーサ",
5
"private": false,
6
"main": "dist/index.js",
src/parser.ts
@@ -132,6 +132,8 @@ const analyzeYear = (str: string): number[] => {
132
}
133
} else if (/・/.test(str)) {
134
res.push(...str.split('・').map((e) => Number(e)))
135
+ } else {
136
+ res.push(parseInt(str))
137
138
return res
139
0 commit comments