From ff14948a4eb9a2cc9f6b041c44cec02877dc2d31 Mon Sep 17 00:00:00 2001 From: Bouke Versteegh Date: Mon, 1 Jun 2020 23:24:04 +0200 Subject: [PATCH] Use raw string for regex Co-authored-by: nat --- betterproto/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/betterproto/plugin.py b/betterproto/plugin.py index 5780240..6fc92b6 100755 --- a/betterproto/plugin.py +++ b/betterproto/plugin.py @@ -198,7 +198,7 @@ def generate_code(request, response): field_wraps = "" match_wrapper = re.match( - "\\.google\\.protobuf\\.(.+)Value", f.type_name + r"\.google\.protobuf\.(.+)Value", f.type_name ) if match_wrapper: wrapped_type = "TYPE_" + match_wrapper.group(1).upper()