mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-23 22:25:14 -04:00
Added additional rules to cleanse confidential details from log file messages.
This commit is contained in:
committed by
Mark McDowall
parent
9a649cf58e
commit
6c8c87d2e2
@@ -32,6 +32,13 @@ namespace NzbDrone.Common
|
||||
|
||||
private static readonly Regex CollapseSpace = new Regex(@"\s+", RegexOptions.Compiled);
|
||||
|
||||
public static string Replace(this string text, int index, int length, string replacement)
|
||||
{
|
||||
text = text.Remove(index, length);
|
||||
text = text.Insert(index, replacement);
|
||||
return text;
|
||||
}
|
||||
|
||||
public static string RemoveAccent(this string text)
|
||||
{
|
||||
var normalizedString = text.Normalize(NormalizationForm.FormD);
|
||||
|
||||
Reference in New Issue
Block a user