Skip to content

Commit

Permalink
Improve language detection
Browse files Browse the repository at this point in the history
There is a large number of dotenv files out there that do not
actually use a dot in their name. Here is a small comparative study:

- `env`: 2.8k
- `*.env`: | 29.1k
- `?*env`: 12.5k
- `env_*`: 635

For more information on the study, see:
squeak-smalltalk/squeak-app#22 (comment)
  • Loading branch information
LinqLover committed Oct 4, 2021
1 parent ad506a6 commit bf97ddc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@
".env.prod",
".env.prod.local"
],
"filenamePatterns": [
"?*env"
],
"filenames": [
"env"
],
"configuration": "./language-configuration.json"
}
],
Expand Down

0 comments on commit bf97ddc

Please sign in to comment.