Skip to content

Commit 0b6d5b7

Browse files
committed
Tidy
1 parent e8c64af commit 0b6d5b7

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

Sanchez.Processing/Services/Filesystem/Parsers/Gk2ASatDumpVariantFilenameParser.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@ namespace Sanchez.Processing.Services.Filesystem.Parsers;
55
/// <summary>
66
/// Parses filenames of satellite imagery received from GK-2A and processed by <c>xrit-rc</c>.
77
/// </summary>
8-
public class Gk2ASatDumpVariantFilenameParser : AbstractFilenameParser
8+
public class Gk2ASatDumpVariantFilenameParser(string? prefix, string? suffix) : AbstractFilenameParser
99
{
10-
protected override Regex Regex { get; }
10+
protected override Regex Regex { get; } = new(prefix + "([0-9]{8}T[0-9]{6}Z)" + suffix + "\\.[^ ]*", RegexOptions.Compiled);
1111

1212
protected override string TimestampFormat => "yyyyMMddTHHmmssZ";
13-
14-
public Gk2ASatDumpVariantFilenameParser(string? prefix, string? suffix)
15-
{
16-
Regex = new Regex(prefix + "([0-9]{8}T[0-9]{6}Z)" + suffix + "\\.[^ ]*", RegexOptions.Compiled);
17-
}
1813
}

0 commit comments

Comments
 (0)