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