Skip to content

Commit

Permalink
docs(project): update LICENSE
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoemp committed Feb 4, 2025
1 parent da3c060 commit c1e87b3
Showing 1 changed file with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class OctraDropzoneComponent extends DefaultComponent {
if (
new RegExp(
`${converter.extensions
.map((a) => `(?:${escapeRegex(a)})`)
.map((a) => `(?:${escapeRegex(a.toLowerCase())})`)
.join('|')}$`
).exec(fileProgress.name.toLowerCase()) !== null
) {
Expand Down Expand Up @@ -218,18 +218,12 @@ export class OctraDropzoneComponent extends DefaultComponent {
) {
fileProgress.status = 'valid';

if (
new RegExp(
`${escapeRegex(audioName)}${AppInfo.converters[i].extensions
.map((a) => `(?:${escapeRegex(a)})`)
.join('|')}$`
).exec(fileProgress.name) === null &&
new RegExp(
`${escapeRegex(audioName)}${AppInfo.converters[i].extensions
.map((a) => `(?:${escapeRegex(a.toLowerCase())})`)
.join('|')}$`
).exec(fileProgress.name) === null
) {
const regexStr = `${escapeRegex(audioName)}${AppInfo.converters[
i
].extensions
.map((a) => `(?:${escapeRegex(a)})|((?:${escapeRegex(a.toLowerCase())}))`)
.join('|')}$`;
if (new RegExp(regexStr).exec(fileProgress.name) === null) {
fileProgress.warning = 'File names are not the same.';
}
for (const lvl of importResult.annotjson.levels) {
Expand Down

0 comments on commit c1e87b3

Please sign in to comment.