Skip to content

Commit

Permalink
fix regex for getting layer name
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Nov 8, 2014
1 parent 95f880a commit 5d1dde0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/OgrAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def ogrLayerName(self, uri):
layerName = None

if 'host' in uri:
regex = re.compile('(table=")(.+?)(\.")(.+?)"')
regex = re.compile('(table=")(.+?)(\.)(.+?)"')
r = regex.search(uri)
return r.groups()[1] + '.' + r.groups()[3]
elif 'dbname' in uri:
Expand Down

0 comments on commit 5d1dde0

Please sign in to comment.