Skip to content

Commit

Permalink
Improve datasource service parsing regex
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Jan 11, 2024
1 parent 198b024 commit 6202005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config_generator/qgs_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def __db_connection(self, datasource):

if 'service=' in datasource:
# PostgreSQL connection service
m = re.search(r"service='([\w ]+)'", datasource)
m = re.search(r"service='([^']+)'", datasource)
if m is not None:
connection_string = 'postgresql:///?service=%s' % m.group(1)

Expand Down

0 comments on commit 6202005

Please sign in to comment.