Anabranch.Neo4JConsolePackage.AutoCompleteBehavior.CypherEvaluator.GetCurrentLineOfCypher C# (CSharp) Method

GetCurrentLineOfCypher() private static method

private static GetCurrentLineOfCypher ( string cypher ) : string
cypher string
return string
        private static string GetCurrentLineOfCypher(string cypher)
        {
            if (string.IsNullOrWhiteSpace(cypher))
                return cypher;

            var split = cypher.Split(new[] { "\r\n" }, StringSplitOptions.None);
            return split.Length > 1 ? split.Last() : cypher;
        }