diff options
| author | Bond_009 <Bond.009@outlook.com> | 2020-02-08 21:49:28 +0100 |
|---|---|---|
| committer | Bond_009 <Bond.009@outlook.com> | 2020-02-08 21:49:28 +0100 |
| commit | f96bc23c4fb958c44c17a8832ec13fad37f48f1c (patch) | |
| tree | e56d5c35677a6d3890b426d474fe9e3e729d5c7e /Emby.Naming/Common/EpisodeExpression.cs | |
| parent | 91707f13a877dd4e8b70d0857f0343215be76758 (diff) | |
| parent | 77428d338db09c4f3df3121281d952851a8a89ec (diff) | |
Merge branch 'master' into nullable2
Diffstat (limited to 'Emby.Naming/Common/EpisodeExpression.cs')
| -rw-r--r-- | Emby.Naming/Common/EpisodeExpression.cs | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/Emby.Naming/Common/EpisodeExpression.cs b/Emby.Naming/Common/EpisodeExpression.cs index 30a74fb65..f60f7e84b 100644 --- a/Emby.Naming/Common/EpisodeExpression.cs +++ b/Emby.Naming/Common/EpisodeExpression.cs @@ -11,6 +11,24 @@ namespace Emby.Naming.Common private string _expression; private Regex _regex; + public EpisodeExpression(string expression, bool byDate) + { + Expression = expression; + IsByDate = byDate; + DateTimeFormats = Array.Empty<string>(); + SupportsAbsoluteEpisodeNumbers = true; + } + + public EpisodeExpression(string expression) + : this(expression, false) + { + } + + public EpisodeExpression() + : this(null) + { + } + public string Expression { get => _expression; @@ -32,23 +50,5 @@ namespace Emby.Naming.Common public string[] DateTimeFormats { get; set; } public Regex Regex => _regex ?? (_regex = new Regex(Expression, RegexOptions.IgnoreCase | RegexOptions.Compiled)); - - public EpisodeExpression(string expression, bool byDate) - { - Expression = expression; - IsByDate = byDate; - DateTimeFormats = Array.Empty<string>(); - SupportsAbsoluteEpisodeNumbers = true; - } - - public EpisodeExpression(string expression) - : this(expression, false) - { - } - - public EpisodeExpression() - : this(null) - { - } } } |
