Skip to content

Commit 1863f36

Browse files
authored
add js and htmx as text files (#177)
1 parent 2c46617 commit 1863f36

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project>
33
<PropertyGroup>
44
<NoWarn>CS1591;CS0649</NoWarn>
5-
<Version>8.3.0</Version>
5+
<Version>8.4.0</Version>
66
<LangVersion>preview</LangVersion>
77
<AssemblyVersion>1.0.0</AssemblyVersion>
88
<Description>A collection of minimal binary files.</Description>

src/EmptyFiles/ContentTypes.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,12 @@ public static bool TryGetExtension(string? mediaType, [NotNullWhen(true)] out st
247247
{
248248
"text/html", "html"
249249
},
250+
{
251+
"text/htmx", "htmx"
252+
},
253+
{
254+
"text/javascript", "js"
255+
},
250256
{
251257
"text/plain", "txt"
252258
},

src/EmptyFiles/FileExtensions.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ public static void AddTextExtensions(IEnumerable<string> extensions)
213213
".htc",
214214
".htm",
215215
".html",
216+
".htmx",
216217
".htpasswd",
217218
".hxx",
218219
".ics",
@@ -234,6 +235,7 @@ public static void AddTextExtensions(IEnumerable<string> extensions)
234235
".jhtm",
235236
".jhtml",
236237
".js",
238+
".javascript",
237239
".jscsrc",
238240
".jshintignore",
239241
".jshintrc",
@@ -417,7 +419,8 @@ public static void AddTextExtensions(IEnumerable<string> extensions)
417419
".yml",
418420
".zsh",
419421
".zshrc"
420-
}.ToFrozenSet();
422+
}
423+
.ToFrozenSet();
421424

422425
public static IReadOnlyCollection<string> TextExtensions => textExtensions;
423426

0 commit comments

Comments
 (0)