Skip to content

Commit 02cae9d

Browse files
committed
add yaml and yml extensions to fileviewertext
1 parent a446fe9 commit 02cae9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/openneuro-app/src/scripts/dataset/files/file-viewer-type.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const FileViewerType = ({ path, url, data }) => {
2020
path.endsWith(".bidsignore") ||
2121
path.endsWith(".gitignore") ||
2222
path.endsWith(".txt") ||
23-
path.endsWith(".rst")
23+
path.endsWith(".rst") ||
24+
path.endsWith(".yml") || path.endsWith(".yaml")
2425
) {
2526
return <FileViewerText data={data} />
2627
} else if (

0 commit comments

Comments
 (0)