Be consistent about end-of-file newlines

This commit is contained in:
Matt Nadareski
2025-07-23 10:00:50 -04:00
parent 6f6d071a79
commit b436b64c3a
10 changed files with 13 additions and 13 deletions

View File

@@ -329,4 +329,4 @@ namespace SabreTools.Matching.Content
#endregion
}
}
}

View File

@@ -235,4 +235,4 @@ namespace SabreTools.Matching.Content
#endregion
}
}
}

View File

@@ -28,4 +28,4 @@ namespace SabreTools.Matching
/// <param name="positions">List of positions in the Stream that were matched</param>
/// <returns>Version string on success, null on failure</returns>
public delegate string? GetStreamVersion(string path, Stream? content, List<int> positions);
}
}

View File

@@ -6,4 +6,4 @@ namespace System.Runtime.CompilerServices
internal sealed class ExtensionAttribute : Attribute {}
}
#endif
#endif

View File

@@ -223,4 +223,4 @@ namespace SabreTools.Matching
return FirstPosition(stack, needle, start: stack.Length - needle.Length) > -1;
}
}
}
}

View File

@@ -17,4 +17,4 @@ namespace SabreTools.Matching
/// </summary>
public string SetName { get; }
}
}
}

View File

@@ -98,7 +98,7 @@ namespace SabreTools.Matching
var version = matcher.GetArrayVersion(file, stack, positions);
if (version == null)
continue;
// Trim and add the version
version = version.Trim();
if (version.Length > 0)
@@ -212,7 +212,7 @@ namespace SabreTools.Matching
var version = matcher.GetStreamVersion(file, stack, positions);
if (version == null)
continue;
// Trim and add the version
version = version.Trim();
if (version.Length > 0)
@@ -333,7 +333,7 @@ namespace SabreTools.Matching
var version = matcher.GetVersion(matches[0], stack);
if (version == null)
continue;
// Trim and add the version
version = version.Trim();
if (version.Length > 0)
@@ -353,4 +353,4 @@ namespace SabreTools.Matching
#endregion
}
}
}

View File

@@ -15,4 +15,4 @@ namespace SabreTools.Matching.Paths
public FilePathMatch(string needle, bool matchCase = false)
: base($"{Path.DirectorySeparatorChar}{needle}", matchCase, true) { }
}
}
}

View File

@@ -89,4 +89,4 @@ namespace SabreTools.Matching.Paths
#endregion
}
}
}

View File

@@ -152,4 +152,4 @@ namespace SabreTools.Matching.Paths
#endregion
}
}
}