mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-21 18:34:43 +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)
|
self.type = flag_match.group(2)
|
||||||
|
|
||||||
# Then check if the type is a Vector<REAL_TYPE>
|
# 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:
|
if vector_match:
|
||||||
self.is_vector = True
|
self.is_vector = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user