mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
- Fixed counting parameters which have formats in response strings
- Almost finished porting localized string keys as methods - Compiles
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user