Skip to content

Commit

Permalink
feat: amélioration du matching de numéro de ticket
Browse files Browse the repository at this point in the history
- Match le n"même s’il y a un texte en préfixe (exemple « Anomalie
  #12345 - Mon ticket »)
  • Loading branch information
DjLeChuck committed Oct 11, 2024
1 parent d5dd87d commit 9d1f90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/toggltrack/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func indexExists(s []string, i int) bool {
func newIssue(apiDesc string) issue {
i := issue{}

var re = regexp.MustCompile(`^#?([0-9]+)(?: - )?(.*)$`)
var re = regexp.MustCompile(`^(?:\w* )?#?([0-9]+)(?: - )?(.*)$`)
m := re.FindStringSubmatch(apiDesc)
i.IsValid = len(m) > 0

Expand Down

0 comments on commit 9d1f90b

Please sign in to comment.