Skip to content

Commit

Permalink
adjusting method
Browse files Browse the repository at this point in the history
  • Loading branch information
burredis committed Nov 6, 2024
1 parent 72ad592 commit c183cf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions date.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ var (
"NOV": 11, "N0V": 11,
"DEZ": 12, "DEC": 12, "DIC": 12, "DE2": 12,
}
monthPattern = `(?:` + digitsPattern + `|(` + strings.Join(months.GetMonths(), "|") + `)[\D!ç]{0,7})`
monthPattern = `(?:` + digitsPattern + `|(` + strings.Join(months.getMonths(), "|") + `)[\D!ç]{0,7})`
datePattern = `(?i)` + digitsPattern + dateDelimiterPattern + monthPattern + dateDelimiterPattern + digitsPattern
)

type monthsOfYear map[string]int8

// GetMonths returns the months of the year
func (m monthsOfYear) GetMonths() []string {
func (m monthsOfYear) getMonths() []string {
var keys []string
for name := range m {
keys = append(keys, name)
Expand Down

0 comments on commit c183cf5

Please sign in to comment.