mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
parseContact: Be resilient to invalid phone numbers
This commit is contained in:
@@ -88,7 +88,7 @@ describe('timestamp', () => {
|
||||
});
|
||||
|
||||
it('formats month name, day of month, year, and time for other times', () => {
|
||||
const rx = /Apr 20, 2000, \d+:\d+ [A|P]M/;
|
||||
const rx = /Apr (19|20|21), 2000, \d+:\d+ [A|P]M/;
|
||||
const datetime = formatDateTimeLong(i18n, new Date(956216013000));
|
||||
assert.isTrue(rx.test(datetime));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user