mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Fix vector regex in parser (#347)
This commit is contained in:
parent
27728be242
commit
1b71c6fbf1
|
@ -222,7 +222,7 @@ class TLArg:
|
|||
self.type = flag_match.group(2)
|
||||
|
||||
# Then check if the type is a Vector<REAL_TYPE>
|
||||
vector_match = re.match(r'vector<(\w+)>', self.type, re.IGNORECASE)
|
||||
vector_match = re.match(r'[Vv]ector<([\w\d.]+)>', self.type)
|
||||
if vector_match:
|
||||
self.is_vector = True
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user