1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-11-24 08:42:19 +02:00

Log replacement regex

This commit is contained in:
Mark McDowall 2022-06-25 23:23:13 -07:00
parent 35edef91c6
commit ab578566be
2 changed files with 6 additions and 0 deletions

View File

@ -561,6 +561,7 @@ public static ParsedEpisodeInfo ParseTitle(string title)
{
if (replace.TryReplace(ref releaseTitle))
{
Logger.Trace($"Replace regex: {replace}");
Logger.Debug("Substituted with " + releaseTitle);
}
}

View File

@ -42,5 +42,10 @@ public bool TryReplace(ref string input)
input = _regex.Replace(input, _replacementFormat);
return result;
}
public override string ToString()
{
return _regex.ToString();
}
}
}