Bullet-proof time stamp detection.

Sometimes the "Labor" is not followed by a colon.
This commit is contained in:
Daniel Kraus 2015-09-04 17:59:36 +02:00
parent 8c4de2915a
commit 01c971bef5
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ namespace zaaReloaded2.Importer.ZaaImporter
/// paragraph of a LaurisText.
/// </summary>
static readonly Regex _timeStampRegex = new Regex(
@"^(Labor:)?\s*\(?\s*(?<datetime>\d\d\.\d\d\.\d\d\d\d\s+\d\d:\d\d)");
@"^(Labor:?)?\s*\(?\s*(?<datetime>\d\d\.\d\d\.\d\d\d\d\s+\d\d:\d\d)");
IList<String> _paragraphs;
Parameters _parameterDictionary;
Units _unitDictionary;