Add snbt and shaders to text-like files

This commit is contained in:
Misode
2024-10-04 19:23:21 +02:00
parent 91f61b3c36
commit 5b5cc026f4

View File

@@ -40,7 +40,7 @@ export function VersionDiff({ version }: Props) {
let patch = file.patch
if (patch === undefined) {
const isMedia = filename.match(/\.(png|ogg)$/)
const isText = filename.match(/\.(txt|json|mcmeta)$/)
const isText = filename.match(/\.(txt|json|mcmeta|snbt|vsh|fsh)$/)
if (isMedia) {
return {
file,