Skip to content

Commit

Permalink
Replace returns in input to space for query parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskamphuis committed Jun 29, 2021
1 parent 87aada0 commit c6b2c3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions geesedb/interpreter/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def __init__(self, database):
self.metadata = Metadata(database)

def translate(self, query):
query = query.replace('\n', ' ').strip()
if self.patterns['match_return'].match(query):
regex_match = self.patterns['match_return'].match(query)
_match, _filters, _return = regex_match.groups()
Expand Down

0 comments on commit c6b2c3a

Please sign in to comment.