Skip to content

Commit

Permalink
Fix % in chat input
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Apr 24, 2018
1 parent 7bca901 commit 6e7bd36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ClassicalSharp/Utils/StringBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ unsafe string Substring(int offset, int len) {
for (int i = 0; i < len; i++) {
tmp[i] = value[offset + i];
if (tmp[i] != '%' || (i + 1) >= len) continue;
if (IDrawer2D.ValidColCode(tmp[i + 1])) tmp[i] = '&';
if (IDrawer2D.ValidColCode(value[offset + i + 1])) tmp[i] = '&';
}
return new String(tmp, 0, len);
}
Expand Down

0 comments on commit 6e7bd36

Please sign in to comment.