Repository: lucenenet Updated Branches: refs/heads/master caa61a37d -> 2368a020d
BUG: Lucene.Net.Support.StringExtensions.TrimEnd(): Fixed logic to correctly trim all of the elements if they are empty Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/713a645f Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/713a645f Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/713a645f Branch: refs/heads/master Commit: 713a645f8ff416e269ddaa4af3dc6697a0f0e0e1 Parents: a57d9f1 Author: Shad Storhaug <[email protected]> Authored: Tue Sep 19 20:15:44 2017 +0700 Committer: Shad Storhaug <[email protected]> Committed: Fri Sep 22 03:06:02 2017 +0700 ---------------------------------------------------------------------- src/Lucene.Net/Support/StringExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/713a645f/src/Lucene.Net/Support/StringExtensions.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net/Support/StringExtensions.cs b/src/Lucene.Net/Support/StringExtensions.cs index c051a60..8f99970 100644 --- a/src/Lucene.Net/Support/StringExtensions.cs +++ b/src/Lucene.Net/Support/StringExtensions.cs @@ -153,7 +153,7 @@ namespace Lucene.Net.Support if (!string.IsNullOrEmpty(input[lastElement])) break; } - if (lastElement > 0 && lastElement < input.Length) + if (lastElement >= -1 && lastElement < input.Length) { int end = lastElement + 1; string[] result = new string[end];
