mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Update TL2JSON.cs
This commit is contained in:
parent
de231dafd9
commit
76d2e9ad40
|
|
@ -27,7 +27,8 @@ namespace TeleSharp.Generator
|
|||
},
|
||||
RegexOptions.Singleline);
|
||||
}
|
||||
public static string RemoveEmptyLines(string input) => Regex.Replace(input, @"^\s+$[\r\n]*", "", RegexOptions.Multiline);
|
||||
public static string RemoveEmptyLines(string input) =>
|
||||
Regex.Replace(input, @"^\s+$[\r\n]*", "", RegexOptions.Multiline);
|
||||
|
||||
public static string ParseTypeLine(string line)
|
||||
{
|
||||
|
|
@ -107,4 +108,4 @@ namespace TeleSharp.Generator
|
|||
return $"{{\"constructors\":[{string.Join(",", convertedTypesList)}], \"methods\": [{string.Join(",", convertedMethodsList)}]}}"; // { "constructors": [ OBJECT, OBJECT ], "methods": [ OBJECT, OBJECT ] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue