Skip to content

Commit 7c42d7d

Browse files
authored
Allowing dash in DB and table name when using backup tool. (#183)
1 parent 3911023 commit 7c42d7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rethinkdb/utils_common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def check_minimum_version(options, minimum_version="1.6", raise_exception=True):
170170

171171

172172
DbTable = collections.namedtuple("DbTable", ["db", "table"])
173-
_tableNameRegex = re.compile(r"^(?P<db>\w+)(\.(?P<table>\w+))?$")
173+
_tableNameRegex = re.compile(r"^(?P<db>[\w-]+)(\.(?P<table>[\w-]+))?$")
174174

175175

176176
class CommonOptionsParser(optparse.OptionParser, object):

0 commit comments

Comments
 (0)