Skip to content
Permalink
Browse files

fix regex for getting layer name

  • Loading branch information
alexbruy committed Nov 8, 2014
1 parent 95f880a commit 5d1dde034e4e766ca3c02eb9f9bcce95985658af
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/gdal/OgrAlgorithm.py
@@ -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:

0 comments on commit 5d1dde0

Please sign in to comment.
You can’t perform that action at this time.