From c341a961a5bd2154be2f02e07745b903195aee19 Mon Sep 17 00:00:00 2001 From: gyk <147011991+gyk4j@users.noreply.github.com> Date: Sat, 2 Mar 2024 19:52:04 +0800 Subject: [PATCH] Fix path date matching beyond end bug (#212) --- Wreck/IO/Reader/Fs/PathReader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wreck/IO/Reader/Fs/PathReader.cs b/Wreck/IO/Reader/Fs/PathReader.cs index f02a703..6aa1e66 100644 --- a/Wreck/IO/Reader/Fs/PathReader.cs +++ b/Wreck/IO/Reader/Fs/PathReader.cs @@ -119,7 +119,7 @@ public override void Extract(FileSystemInfo file, List 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;