Skip to content

Commit

Permalink
fix(compatibility-module): fix skipping work process after getting un…
Browse files Browse the repository at this point in the history
…defined field in compatibility module
  • Loading branch information
Falcion committed Nov 5, 2024
1 parent 188eb0d commit 8fe545d
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions source/addons/compatibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,27 @@ export default class CompatibilityModule {
private async convert(data: any, version: string): Promise<boolean> {
const settingsMap: { [key: string]: any } = {
'1.*': {
extensions: data.extensions.replace(',', '>'),
forced_extensions: data.force_extensions.replace(',', '>'),
extensions: data.extensions?.replace(',', '>') ?? '',
forced_extensions: data.forced_extensions?.replace(',', '>') ?? '',
is_onload: Boolean(data.is_dynamic_on),
},
'2.0': {
extensions: data.extensions.replace(',', '>'),
grouped_extensions: data.grouped_extensions.replace(',', '>'),
extensions: data.extensions?.replace(',', '>') ?? '',
grouped_extensions: data.grouped_extensions?.replace(',', '>') ?? '',
},
'2.1': {
grouped_extensions: data.grouped_extensions.replace(',', '>'),
extensions: data.extensions.replace(';', '>'),
forced_extensions: data.forced_extensions.replace(';', '>'),
ignore_extensions: data.ignore_extensions.replace(';', '>'),
ignore_masks: data.ignore_masks.replace(';', '>'),
grouped_extensions: data.grouped_extensions?.replace(';', '>') ?? '',
extensions: data.extensions?.replace(';', '>') ?? '',
forced_extensions: data.forced_extensions?.replace(';', '>') ?? '',
ignore_extensions: data.ignore_extensions?.replace(';', '>') ?? '',
ignore_masks: data.ignore_masks?.replace(';', '>') ?? '',
},
'2.4': {
grouped_extensions: data.grouped_extensions.replace(',', '>'),
extensions: data.extensions.replace(';', '>'),
forced_extensions: data.forced_extensions.replace(';', '>'),
ignore_extensions: data.ignore_extensions.replace(';', '>'),
ignore_masks: data.ignore_masks.replace(';', '>'),
grouped_extensions: data.grouped_extensions?.replace(',', '>') ?? '',
extensions: data.extensions?.replace(';', '>') ?? '',
forced_extensions: data.forced_extensions?.replace(';', '>') ?? '',
ignore_extensions: data.ignore_extensions?.replace(';', '>') ?? '',
ignore_masks: data.ignore_masks?.replace(';', '>') ?? '',
},
};

Expand Down

0 comments on commit 8fe545d

Please sign in to comment.