mirror of
https://github.com/Equicord/Equicord.git
synced 2025-04-01 13:11:57 -04:00
Fix CustomTimestamps Canary
This commit is contained in:
parent
534e940f1b
commit
96df3abaac
1 changed files with 15 additions and 13 deletions
|
@ -66,19 +66,21 @@ export default definePlugin({
|
||||||
</Forms.FormText>
|
</Forms.FormText>
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
patches: [{
|
patches: [
|
||||||
find: "#{intl::MESSAGE_EDITED_TIMESTAMP_A11Y_LABEL}",
|
{
|
||||||
replacement: [
|
find: "#{intl::MESSAGE_EDITED_TIMESTAMP_A11Y_LABEL}",
|
||||||
{
|
replacement: [
|
||||||
match: /(?<=\i=\i\?)\(0,\i\.\i\)\((\i),"LT"\):\(0,\i\.\i\)\(\i\)/,
|
{
|
||||||
replace: '$self.format($1,"compactFormat","[calendar]"):$self.format($1,"cozyFormat","LT")',
|
match: /(?<=\i=\i\?)\(0,\i\.\i\)\((\i),"LT"\):\(0,\i\.\i\)\(\i,!0\)/,
|
||||||
},
|
replace: '$self.format($1,"compactFormat","[calendar]"):$self.format($1,"cozyFormat","LT")',
|
||||||
{
|
},
|
||||||
match: /(?<=text:)\(0,\i.\i\)\((\i),"LLLL"\)(?=,)/,
|
{
|
||||||
replace: '$self.format($1,"tooltipFormat","LLLL")',
|
match: /(?<=text:)\(0,\i.\i\)\((\i),"LLLL"\)(?=,)/,
|
||||||
},
|
replace: '$self.format($1,"tooltipFormat","LLLL")',
|
||||||
]
|
},
|
||||||
}],
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
format(date: Date, key: string, fallback: string) {
|
format(date: Date, key: string, fallback: string) {
|
||||||
const t = moment(date);
|
const t = moment(date);
|
||||||
|
|
Loading…
Add table
Reference in a new issue