diff --git a/ChangeLog.md b/ChangeLog.md index 2c30b49..87aea77 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [Unreleased] + +## [1.1.5] +### Fixed +- Issue #55: Remove debug prints + ## [1.1.4] ### Changed - Removed reference to System.ValueTuple @@ -68,7 +74,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fix issue that caused unnecessary directory traversal (#20) - Fix issue where Glob.Directories did not always match properly -[Unreleased]: https://github.com/kthompson/glob/compare/1.1.4...HEAD +[Unreleased]: https://github.com/kthompson/glob/compare/1.1.5...HEAD +[1.1.5]: https://github.com/kthompson/glob/compare/1.1.4...1.1.5 [1.1.4]: https://github.com/kthompson/glob/compare/1.1.3...1.1.4 [1.1.3]: https://github.com/kthompson/glob/compare/1.1.2...1.1.3 [1.1.2]: https://github.com/kthompson/glob/compare/1.1.1...1.1.2 diff --git a/src/Glob/Glob.Statics.cs b/src/Glob/Glob.Statics.cs index 582cbda..2af390e 100644 --- a/src/Glob/Glob.Statics.cs +++ b/src/Glob/Glob.Statics.cs @@ -79,13 +79,9 @@ public static IEnumerable FilesAndDirectories(DirectoryInfo work public static IEnumerable FilesAndDirectories(DirectoryInfo workingDirectory, string pattern, GlobOptions options) => workingDirectory.Traverse(pattern, !options.HasFlag(GlobOptions.CaseInsensitive), true, true); - private static int GetTruncateLength(FileSystemInfo directoryInfo) - { - Console.WriteLine(Path.DirectorySeparatorChar); - Console.WriteLine(directoryInfo.FullName.EndsWith(Path.DirectorySeparatorChar.ToString())); - return directoryInfo.FullName.EndsWith(Path.DirectorySeparatorChar.ToString()) + private static int GetTruncateLength(FileSystemInfo directoryInfo) => + directoryInfo.FullName.EndsWith(Path.DirectorySeparatorChar.ToString()) ? directoryInfo.FullName.Length : directoryInfo.FullName.Length + 1; - } } } diff --git a/src/Glob/Glob.csproj b/src/Glob/Glob.csproj index c432db6..effa197 100644 --- a/src/Glob/Glob.csproj +++ b/src/Glob/Glob.csproj @@ -11,6 +11,8 @@ C#;glob;minimatch A C# Glob library for .NET and .NET Core. +### Fixed +- Issue #55: Remove debug prints https://github.com/kthompson/glob/ https://raw.githubusercontent.com/kthompson/glob/master/LICENSE