Skip to content

Commit

Permalink
Fix path date matching beyond end bug (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyk4j authored Mar 2, 2024
1 parent c309478 commit c341a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wreck/IO/Reader/Fs/PathReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public override void Extract(FileSystemInfo file, List<Metadata> metadata)
}

int end = matcher.Index + matcher.Length; // Start searching after the date.
matcher = FILENAME_PATTERN_TIME.Match(filename.Substring(end));
matcher = FILENAME_PATTERN_TIME.Match(file.FullName.Substring(end));
if (matcher.Success)
{
time = matcher.Value;
Expand Down

0 comments on commit c341a96

Please sign in to comment.