diff --git a/src/modules/metadata/Metadata.constants.ts b/src/modules/metadata/Metadata.constants.ts index 24b602fb..4837e4bc 100644 --- a/src/modules/metadata/Metadata.constants.ts +++ b/src/modules/metadata/Metadata.constants.ts @@ -291,7 +291,7 @@ export const METADATA_MIGRATIONS: IMetadataMigration[] = [ // END: fitPageToWindow { key: 'readerWidth', - oldValue: /[0-9]+/g, + oldValue: /^[0-9]+$/g, newValue: (oldValue) => JSON.stringify({ value: Number(oldValue), enabled: true }), }, ],