From 5df7ee66ca75457385f1265f65f1ddfd7a6645b9 Mon Sep 17 00:00:00 2001 From: hchac Date: Thu, 9 Apr 2020 18:01:51 -0400 Subject: [PATCH] Allowing dash in DB and table name when using backup tool. --- rethinkdb/utils_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rethinkdb/utils_common.py b/rethinkdb/utils_common.py index 9aba3732..b0755511 100644 --- a/rethinkdb/utils_common.py +++ b/rethinkdb/utils_common.py @@ -170,7 +170,7 @@ def check_minimum_version(options, minimum_version="1.6", raise_exception=True): DbTable = collections.namedtuple("DbTable", ["db", "table"]) -_tableNameRegex = re.compile(r"^(?P\w+)(\.(?P\w+))?$") +_tableNameRegex = re.compile(r"^(?P[\w-]+)(\.(?P
[\w-]+))?$") class CommonOptionsParser(optparse.OptionParser, object):