-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue #1789 #1802
Fix issue #1789 #1802
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question
// TODO: use .replaceAll when migrating to TS. | ||
return humanDate(datems).replace(/\x20/g, '\xa0') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't we use .replaceAll
now? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just because our Flow version would complain about it being a non-existent string property. Or maybe we could add a $FlowFixMe
comment to use it now anyway
const userId = Math.floor(Math.random() * 10000) | ||
const groupName = 'Dreamers' | ||
const usersDisplayName = { | ||
1: 'Greg', | ||
2: 'Margarida', | ||
3: 'Pierre', | ||
4: 'Sandrina' | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file seems to have been duplicated and added on accident? Can it be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea sure - renaming a specific test file this way is a method I use sometimes to have it run first
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job @snowteamer!
EDIT: see comment: #1789 (comment) - think this issue is still open
Closes #1789
This quickfix PR addresses an issue where
timeSince()
would replace2
(\x32) characters instead of plain white spaces (\x20) by non-breaking spaces in its output, causing incorrect date display e.g. in notifications.