nicolewhite / cycli

A Command Line Interface for Neo4j's Cypher.
MIT License
272 stars 25 forks source link

Properties aren't autocompleting on identifiers that end in numbers #31

Closed nicolewhite closed 9 years ago

nicolewhite commented 9 years ago

Properties aren't displayed if cycli thinks the user is typing a float. E.g.,

MATCH (p:Person) WHERE p.age > 5.

won't bring up a menu of properties. However, we do want properties in the case of identifiers that end in numbers:

MATCH (p1:Person) WHERE p1.

At the point above, properties should be displayed. Currently they are not because the current algorithm only checks the most previous character, not the entire identifier.