Repository: lucenenet
Updated Branches:
  refs/heads/master 1780ef768 -> 100ad87e4


BUG: Lucene.Net.QueryParser.Flexible.Core.Util.UnescapedCharSequence: (Fixes 
LUCENENET-592) Changed condition in ToStringEscaped() method so it will 
correctly escape the string.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/9084a201
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/9084a201
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/9084a201

Branch: refs/heads/master
Commit: 9084a2018ae62594820a47261ccf1bd07e580dc4
Parents: 1780ef7
Author: Shad Storhaug <[email protected]>
Authored: Fri Oct 20 18:44:48 2017 +0700
Committer: Shad Storhaug <[email protected]>
Committed: Fri Oct 20 18:44:48 2017 +0700

----------------------------------------------------------------------
 .../Flexible/Core/Util/UnescapedCharSequence.cs                    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9084a201/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
----------------------------------------------------------------------
diff --git 
a/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs 
b/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
index a13f9bf..9066f8f 100644
--- a/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
+++ b/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs
@@ -141,7 +141,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Util
         {
             // non efficient implementation
             StringBuilder result = new StringBuilder();
-            for (int i = 0; i >= this.Length; i++)
+            for (int i = 0; i < this.Length; i++) // LUCENENET-592 - changed 
condition from >= to <
             {
                 if (this.chars[i] == '\\')
                 {

Reply via email to