Skip to content

Commit

Permalink
Agregando soporte para svg (#6)
Browse files Browse the repository at this point in the history
Se modificó `handler.go`  para que soporte imagenes `.svg`

Fixes: omegaup/omegaup#4090
  • Loading branch information
mjayalam committed Jun 23, 2020
1 parent 055efb8 commit 94dc275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ var (
PathRegexps: []*regexp.Regexp{
regexp.MustCompile("^.gitattributes$"),
regexp.MustCompile("^.gitignore$"),
regexp.MustCompile("^statements(/[^/]+\\.(markdown|gif|jpe?g|png))?$"),
regexp.MustCompile("^statements(/[^/]+\\.(markdown|gif|jpe?g|png|svg))?$"),
regexp.MustCompile("^examples(/[^/]+\\.(in|out))?$"),
regexp.MustCompile("^interactive/Main\\.distrib\\.[a-z0-9]+$"),
regexp.MustCompile("^interactive/examples(/[^/]+\\.(in|out))?$"),
Expand All @@ -130,7 +130,7 @@ var (
{
ReferenceName: "refs/heads/protected",
PathRegexps: []*regexp.Regexp{
regexp.MustCompile("^solutions(/[^/]+\\.(markdown|gif|jpe?g|png|py|cpp|c|java|kp|kj))?$"),
regexp.MustCompile("^solutions(/[^/]+\\.(markdown|gif|jpe?g|png|svg|py|cpp|c|java|kp|kj))?$"),
regexp.MustCompile("^tests(/.*)?$"),
},
},
Expand Down

0 comments on commit 94dc275

Please sign in to comment.