]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/config.ts
Add audio only transcoding tests
[github/Chocobozzz/PeerTube.git] / server / controllers / api / config.ts
index 8a00f9835a319c834fe2419206c9c5d451f641dc..c593fa30258366237a30e657d61d2d1edf3816ef 100644 (file)
@@ -357,7 +357,7 @@ function convertCustomConfigBody (body: CustomConfig) {
   function keyConverter (k: string) {
     // Transcoding resolutions exception
     if (/^\d{3,4}p$/.exec(k)) return k
-    if (/^0p$/.exec(k)) return k
+    if (k === '0p') return k
 
     return snakeCase(k)
   }