Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/toukibo/parse_body.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func getMultipleExecutiveNamesAndPositions(s string) (result []struct{ Name, Pos

onNameAndPos = false
}
if match := regexp.MustCompile(fmt.Sprintf("(%s) +([%s]+)", positionsPattern, ZenkakuStringPattern)).FindStringSubmatch(b); len(match) == 3 {
if match := regexp.MustCompile(fmt.Sprintf("(%s)[  ]+([%s]+)", positionsPattern, ZenkakuStringPattern)).FindStringSubmatch(b); len(match) == 3 {
// NOTE: 名前や役職が複数行にまたがる可能性があり、Name と Position は次行以降の内容も踏まえて確定させる必要がある
onNameAndPos = true
result = append(result, struct{ Name, Position string }{Name: trimAllSpace(match[2]), Position: trimAllSpace(match[1])})
Expand Down
Loading