« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/data/things/track.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js
index ad90dd2c..0b34de20 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -90,7 +90,9 @@ export class Track extends Thing {
       Thing.composite.exposeDependencyOrContinue('#album.trackCoverArtFileExtension'),
 
       // Fallback to 'jpg'.
-      Thing.composite.exposeConstant('jpg'),
+      Thing.composite.exposeConstant('jpg', {
+        update: {validate: isFileExtension},
+      }),
     ]),
 
     // Date of cover art release. Like coverArtFileExtension, this represents