Use raw string for regex
Co-authored-by: nat <nat.noordanus@gmail.com>
This commit is contained in:
parent
cb00273257
commit
ff14948a4e
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user