Github handles are converted to lowercase
Hitansh-Shah opened this issue · 5 comments
The github handle provided by user are displayed in lowercase in user profile. Though "https://github.com/username" will take to correct github profile even by randomly changing the case of any letter in the username string, I guess it will be more appropriate if we show the exact github username provided by user.
Hi, @Hitansh-Shah! Sorry I didn't get what you are trying to say. Can you elaborate or give an example?
Hi, @Hitansh-Shah! Sorry I didn't get what you are trying to say. Can you elaborate or give an example?
Sure.
So for example, I provided my github handle which is "Hitansh-Shah" but under profile "hitansh-shah" is being displayed.
Got it! Can do that 👍
hackalog-frontend/components/Profile/EditProfileModal.tsx
Lines 46 to 51 in 8780a0d
The problem is caused by line 51 and could be solved by simply removing it. However as I do not have knowledge of Django, I don't know if that toLowerCase() is there for a purpose.
Can someone please confirm if the toLowerCase() is written on purpose?
That was basically to avoid unnecessary cases in username when a user accidentally keeps their caps lock turned on. But since we have encountered one such case, we can turn this off.