diff --git a/package.json b/package.json index 498b8919..50219306 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vencord", "private": "true", - "version": "1.12.10", + "version": "1.12.11", "description": "The cutest Discord client mod", "homepage": "https://github.com/Vendicated/Vencord#readme", "bugs": { diff --git a/src/webpack/common/utils.ts b/src/webpack/common/utils.ts index 862f3843..633eceea 100644 --- a/src/webpack/common/utils.ts +++ b/src/webpack/common/utils.ts @@ -203,6 +203,7 @@ export const DisplayProfileUtils: t.DisplayProfileUtils = mapMangledModuleLazy(/ export const DateUtils: t.DateUtils = mapMangledModuleLazy("millisecondsInUnit:", { calendarFormat: filters.byCode("sameElse"), dateFormat: filters.byCode('":'), - isSameDay: filters.byCode(/Math\.abs\(\i-\i\)/), + // TODO: the +? are for compat with the old version - Remove them once no longer needed + isSameDay: filters.byCode(/Math\.abs\(\+?\i-\+?\i\)/), diffAsUnits: filters.byCode("days:0", "millisecondsInUnit") });