Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

役員の役職・名前が複数行にまたがるケースを正しくパースできるようにする #110

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

yokonao
Copy link
Collaborator

@yokonao yokonao commented Jul 15, 2024

役員の役職や名前が複数行にまたがっている場合に、結果が意図しないものになることが多かったのでパースロジックを改善しました。

@yokonao yokonao requested a review from tychy July 15, 2024 04:56
@yokonao yokonao marked this pull request as ready for review July 15, 2024 04:56
Comment on lines +249 to +253
posAndNames, three := getMultipleExecutiveNamesAndPositions(p)
if len(posAndNames) > 0 {
evs.Name = posAndNames[0].Name
evs.Position = posAndNames[0].Position
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

この PR 時点では最初の結果のみ利用する
後続のPRで、残りの結果を最終結果に反映する予定

Copy link

Code Metrics Report

main (8bdbbde) #110 (4376269) +/-
Coverage 6.2% 6.2% -0.1%
Code to Test Ratio 1:0.0 1:0.0 -0.0
Test Execution Time 25s 27s +2s
Details
  |                     | main (8bdbbde) | #110 (4376269) |  +/-  |
  |---------------------|----------------|----------------|-------|
- | Coverage            |           6.2% |           6.2% | -0.1% |
  |   Files             |             12 |             12 |     0 |
  |   Lines             |            609 |            614 |    +5 |
  |   Covered           |             38 |             38 |     0 |
- | Code to Test Ratio  |          1:0.0 |          1:0.0 |  -0.0 |
  |   Code              |           7863 |           7876 |   +13 |
  |   Test              |            198 |            198 |     0 |
- | Test Execution Time |            25s |            27s |   +2s |

Code coverage of files in pull request scope (0.0% → 0.0%)

Files Coverage +/-
toukibo/parse_body.go 0.0% 0.0%

Reported by octocov

@tychy
Copy link
Owner

tychy commented Jul 15, 2024

LGTM

@tychy tychy merged commit b1b711e into main Jul 15, 2024
2 checks passed
@tychy tychy deleted the fix-99-1 branch July 15, 2024 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants