lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [01/11] lucenenet git commit: BUG: Lucene.Net.Support.StringExtensions.TrimEnd(): Fixed logic to correctly trim all of the elements if they are empty
Date Fri, 22 Sep 2017 05:55:24 GMT
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 <shad@shadstorhaug.com>
Authored: Tue Sep 19 20:15:44 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
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];


Mime
View raw message