Skip to content

Commit

Permalink
fix: recommendedGradeにnullが入る
Browse files Browse the repository at this point in the history
  • Loading branch information
SIY1121 committed Mar 24, 2021
1 parent 4300e1c commit 08ac23a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twinte-parser",
"version": "2.1.1",
"version": "2.1.2",
"description": "Twinte内部で使用するために開発されたKdBパーサ",
"private": false,
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const analyzeYear = (str: string): number[] => {
}
} else if (//.test(str)) {
res.push(...str.split('・').map((e) => Number(e)))
} else {
} else if (!Number.isNaN(parseInt(str))) {
res.push(parseInt(str))
}
return res
Expand Down

0 comments on commit 08ac23a

Please sign in to comment.