Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Conversation

@akiomik
Copy link
Contributor

@akiomik akiomik commented Jan 8, 2022

No description provided.

@akiomik akiomik added the bug Something isn't working label Jan 8, 2022
@akiomik akiomik requested a review from shoe116 January 8, 2022 01:24
@akiomik akiomik self-assigned this Jan 8, 2022
}

static parse(str: string): DateParam | YearQuarterParam {
str = str.toUpperCase()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

各parserがそれぞれ必要な形式に変換しているのでここでの正規化は不要

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ナイス これあると(結果戻してたとしても)だいぶごちゃごちゃして見えるから助かる

Comment on lines -20 to +18
const date = DateParam.parse(str)
if (!date.isLatest()) {
return date
}
return DateParam.parse(str)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

バグ修正の本体です。 latest のときの結果を無視するようにしていた処理を消しました。

Copy link
Contributor

@shoe116 shoe116 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testもいい感じに修正されててNICE

@akiomik akiomik merged commit d305987 into development Jan 8, 2022
@akiomik akiomik deleted the fix-latest-param branch January 8, 2022 01:33
@akiomik akiomik mentioned this pull request Jan 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants