From d35670f620bf584b707c18edb4bfeb833768897e Mon Sep 17 00:00:00 2001 From: Alexandru Staetu Date: Wed, 25 Sep 2019 13:20:14 +0300 Subject: [PATCH] Allow snake case parameter naming for service endpoints --- thriftcli/thrift_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thriftcli/thrift_parser.py b/thriftcli/thrift_parser.py index de4200a..cb09a3b 100644 --- a/thriftcli/thrift_parser.py +++ b/thriftcli/thrift_parser.py @@ -91,7 +91,7 @@ class ThriftParser(object): # "i64", # "add", # "1:i64 num1, 2:i64 num2") - ENDPOINTS_REGEX = re.compile(r'^[\r\t ]*(oneway)?\s*([^\n]*)\s+(\w+)\(([a-zA-Z0-9: ,.<>]*)\)', + ENDPOINTS_REGEX = re.compile(r'^[\r\t ]*(oneway)?\s*([^\n]*)\s+(\w+)\(([a-zA-Z0-9: ,.<>_]*)\)', flags=re.MULTILINE) # Matches field declarations. Captures index, optional/required, field type, field name, and default value.