Skip to content

Commit

Permalink
Fix year regex limit
Browse files Browse the repository at this point in the history
  • Loading branch information
gyk4j committed Feb 19, 2024
1 parent 8a85a80 commit 3bd0280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Wreck/IO/Reader/Fs/PathReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public class PathReader : AbstractTimestampReader
};

public const string DATE_PART_SEPARATOR = "[\\\\\\-_\\.:/]?";
public const string YEAR_FULL_RANGE = "(?<year>19[8,9][0-9]|20([0-1][0-9]|2[0-3]))";
public const string YEAR_SHORT_RANGE = "(?<year>[8,9][0-9]|[0-1][0-9]|2[0-3])";
public const string YEAR_FULL_RANGE = "(?<year>19[8,9][0-9]|20([0-1][0-9]|2[0-4]))";
public const string YEAR_SHORT_RANGE = "(?<year>[8,9][0-9]|[0-1][0-9]|2[0-4])";
public const string MONTH_RANGE = "(?<month>0[1-9]|1[0-2])";
public const string DAY_RANGE = "(?<day>0[1-9]|[1,2][0-9]|3[0,1])";

Expand Down

0 comments on commit 3bd0280

Please sign in to comment.