- Fixed counting parameters which have formats in response strings

- Almost finished porting localized string keys as methods
- Compiles
This commit is contained in:
Kwoth
2021-07-27 13:07:23 +02:00
parent 0115d35247
commit 4484732f5d
29 changed files with 94 additions and 95 deletions

View File

@@ -25,7 +25,7 @@ namespace NadekoBot.Generators
public readonly struct LocStr
{
public readonly string Key;
public readonly object[] Parms;
public readonly object[] Params;
public LocStr(string key, params object[] data)
{
@@ -59,7 +59,7 @@ namespace NadekoBot.Generators
foreach (var field in fields)
{
var matches = Regex.Matches(field.Value, @"{(?<num>\d)}");
var matches = Regex.Matches(field.Value, @"{(?<num>\d)[}:]");
var max = 0;
foreach (Match match in matches)
{