Skip to content

Commit

Permalink
Merge pull request #38 from farfromrefug/m4a
Browse files Browse the repository at this point in the history
fix: m4a files support
  • Loading branch information
jersou authored Nov 18, 2024
2 parents 7003f60 + f205541 commit 183a715
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 183a715

Please sign in to comment.