Fix two issues with ReplacementAccentSystem (#27866)
This commit is contained in:
parent
0e3a2b3ba1
commit
0d0d46e01f
1 changed files with 2 additions and 2 deletions
|
|
@ -89,8 +89,8 @@ namespace Content.Server.Speech.EntitySystems
|
|||
|
||||
// In-place replace the match with the transformed capitalization replacement
|
||||
message = message.Remove(match.Index, match.Length).Insert(match.Index, replacement);
|
||||
string mask = new string('_', match.Length);
|
||||
maskMessage = message.Remove(match.Index, match.Length).Insert(match.Index, mask);
|
||||
var mask = new string('_', replacement.Length);
|
||||
maskMessage = maskMessage.Remove(match.Index, match.Length).Insert(match.Index, mask);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue