TINKERPOP-1854 Replace StartsWith check with an equality check
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/4ebc68e8 Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/4ebc68e8 Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/4ebc68e8 Branch: refs/heads/TINKERPOP-1897 Commit: 4ebc68e89e0ba1606e06b42a32ec0bebe14fbdf5 Parents: 820adc4 Author: Florian Hockmann <[email protected]> Authored: Sat Mar 17 16:24:09 2018 +0100 Committer: Florian Hockmann <[email protected]> Committed: Sat Mar 17 16:24:09 2018 +0100 ---------------------------------------------------------------------- .../Gherkin/TraversalEvaluation/TraversalParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4ebc68e8/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/TraversalEvaluation/TraversalParser.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/TraversalEvaluation/TraversalParser.cs b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/TraversalEvaluation/TraversalParser.cs index 7e1486c..e3f6a3f 100644 --- a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/TraversalEvaluation/TraversalParser.cs +++ b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/TraversalEvaluation/TraversalParser.cs @@ -398,7 +398,7 @@ namespace Gremlin.Net.IntegrationTest.Gherkin.TraversalEvaluation { return ParseNumber(text, ref i); } - if (text.Length >= i + 3 && text.Substring(i, 3).StartsWith("__.")) + if (text.Length >= i + 3 && text.Substring(i, 3) == "__.") { var startIndex = i; var tokens = ParseTokens(text, ref i);
