Skip to content
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

colorHashFromString is almost nonfunctional #3985

Closed
rk-for-zulip opened this issue Mar 20, 2020 · 1 comment · Fixed by #3991
Closed

colorHashFromString is almost nonfunctional #3985

rk-for-zulip opened this issue Mar 20, 2020 · 1 comment · Fixed by #3991

Comments

@rk-for-zulip
Copy link
Contributor

colorHashFromString:

  • ignores all characters in the string except the second;
  • returns #NaN on strings of length zero or one;
  • returns #NaN on very long strings;
  • cannot return any color with no red component; and
  • cannot return #ffffff.
@Maskedman99
Copy link
Contributor

@zulipbot claim

Maskedman99 added a commit to Maskedman99/zulip-mobile that referenced this issue Mar 21, 2020
colorHashFromString() now considers all charecters in the string
it can also now return colors with red component in it. Also fixed
the cases where the function returned #NaN for very long or
empty strings.

Fixes: zulip#3985
Maskedman99 added a commit to Maskedman99/zulip-mobile that referenced this issue Mar 25, 2020
colorHashFromString() now considers all charecters in the string
it can also now return colors with no red component in it. Also fixed
the cases where the function returned #NaN for very long or
empty strings.

Fixes: zulip#3985
Maskedman99 added a commit to Maskedman99/zulip-mobile that referenced this issue Mar 25, 2020
colorHashFromString() now considers all charecters in the string
it can also now return colors with no red component in it. Also fixed
the cases where the function returned #NaN for very long or
empty strings.

Fixes: zulip#3985
Maskedman99 added a commit to Maskedman99/zulip-mobile that referenced this issue Mar 25, 2020
colorHashFromString() now considers all charecters in the string
it can also now return colors with no red component in it. Also fixed
the cases where the function returned #NaN for very long or
empty strings.

Fixes: zulip#3985
Maskedman99 added a commit to Maskedman99/zulip-mobile that referenced this issue Mar 25, 2020
colorHashFromString() now considers all charecters in the string
it can also now return colors with no red component in it. Also fixed
the cases where the function returned #NaN for very long or
empty strings.

Fixes: zulip#3985
Maskedman99 added a commit to Maskedman99/zulip-mobile that referenced this issue Mar 25, 2020
colorHashFromString() now considers all charecters in the string
it can also now return colors with no red component in it. Also fixed
the cases where the function returned #NaN for very long or
empty strings.

Fixes: zulip#3985

group-pm: fix colorHashFromString

colorHashFromString() now considers all charecters in the string
it can also now return colors with no red component in it. Also fixed
the cases where the function returned #NaN for very long or
empty strings.

Fixes: zulip#3985
Maskedman99 added a commit to Maskedman99/zulip-mobile that referenced this issue Mar 27, 2020
colorHashFromString() now considers all charecters in the string
it can also now return colors with no red component in it. Also fixed
the cases where the function returned #NaN for very long or
empty strings.

Fixes: zulip#3985
Maskedman99 added a commit to Maskedman99/zulip-mobile that referenced this issue Mar 27, 2020
colorHashFromString() now considers all charecters in the string
it can also now return colors with no red component in it. Also fixed
the cases where the function returned #NaN for very long or
empty strings.

Fixes: zulip#3985
rk-for-zulip pushed a commit to Maskedman99/zulip-mobile that referenced this issue Apr 13, 2020
colorHashFromString() now considers all characters in the string. It
can also now return colors with no red component in it. Also fixed the
cases where the function returned #NaN for very long or very short
strings.

[ray: Minor copyedits to commit message.]

Fixes: zulip#3985
rk-for-zulip pushed a commit to Maskedman99/zulip-mobile that referenced this issue Apr 13, 2020
colorHashFromString() now considers all characters in the string. It
can also now return colors with no red component in it.

Also fixed the cases where the function returned #NaN for very long or
very short strings.

[ray: Minor copyedits to commit message.]

Fixes: zulip#3985
rk-for-zulip pushed a commit that referenced this issue Apr 13, 2020
colorHashFromString() now considers all characters in the string. It
can also now return colors with no red component in it.

Also fixed the cases where the function returned #NaN for very long or
very short strings.

[ray: Minor copyedits to commit message.]

Fixes: #3985
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants