Skip to content

Commit

Permalink
fix: handle hyphen in DAI course
Browse files Browse the repository at this point in the history
  • Loading branch information
Lutonite committed Sep 26, 2023
1 parent 02ddb3a commit 59429aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/grades.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (p gradesParser) getRowType(row *goquery.Selection) gradeRowType {
func (p gradesParser) parseClassHeader(row *goquery.Selection) (*ClassGrades, error) {
text := row.Find("td.bigheader").Text()

re, err := regexp.Compile(`(?m)^(\w{3,}) - moyenne\s+?(hors examen)?.+(\d.\d+|-)$`)
re, err := regexp.Compile(`(?m)^([\w-]{3,}) - moyenne\s+?(hors examen)?.+(\d.\d+|-)$`)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 59429aa

Please sign in to comment.