Skip to content

Commit

Permalink
Add default config for application/javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
doronbehar committed May 18, 2024
1 parent a9e86df commit 4955563
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal_writers/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ var internalWritersRegexMap = map[string] func(string, string, string) (func(w i
"text/*": NewChromaWriter,
// https://github.com/doronbehar/pistol/issues/34
"application/json": NewChromaWriter,
// See:
// - https://github.com/doronbehar/pistol/issues/106
// - https://stackoverflow.com/a/21098951/4935114
"application/javascript": NewChromaWriter,
"application/zip": NewArchiveLister,
"application/x-rar-compressed": NewArchiveLister,
"application/x-tar": NewArchiveLister,
Expand Down

0 comments on commit 4955563

Please sign in to comment.