mirror of https://github.com/bonobonet/botty
Fix rot13 UTF-8 bug
This commit is contained in:
parent
3534bf6ff9
commit
08ae243ac6
|
@ -60,7 +60,7 @@ public final class Rot13 : Mod
|
|||
ch = (ch - 'a' + 13) % 26 + 'a';
|
||||
if (ch >= 'A' && ch <= 'Z')
|
||||
ch = (ch - 'A' + 13) % 26 + 'A';
|
||||
return ch.to!char;
|
||||
return ch.to!wchar;
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue