Skip to content

Commit

Permalink
fix: m4a files support
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Nov 18, 2024
1 parent c26feec commit f205541
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { getFfmpegCommand } from "./external_commands.ts";
import type { StudioPackGenerator } from "../studio_pack_generator.ts";

export const extensionRegEx = /\.([^.?]+)(\?.*)?$/i;
export const folderAudioItemRegEx = /^0-item\.(ogg|opus|wav|mp3)$/i;
export const nightModeAudioItemRegEx = /^0-night-mode\.(ogg|opus|wav|mp3)$/i;
export const folderAudioItemRegEx = /^0-item\.(ogg|opus|wav|mp3|m4a)$/i;
export const nightModeAudioItemRegEx = /^0-night-mode\.(ogg|opus|wav|mp3|m4a)$/i;
export const folderImageItemRegEx = /^0-item\.(png|jpg|jpeg|bmp)$/i;
export const fileAudioItemRegEx = /\.item\.(ogg|opus|wav|mp3)$/i;
export const fileAudioItemRegEx = /\.item\.(ogg|opus|wav|mp3|m4a)$/i;
export const fileImageItemRegEx = /\.item\.(png|jpg|jpeg|bmp)$/i;
export const storyRegEx = /\.(ogg|opus|wav|mp3)$/i;
export const storyRegEx = /\.(ogg|opus|wav|mp3|m4a)$/i;
export const itemsRegEx = [
folderAudioItemRegEx,
folderImageItemRegEx,
Expand Down

0 comments on commit f205541

Please sign in to comment.