Browse Source

update json regex to make langage code optional

pull/2211/head
Cenngo 3 years ago
parent
commit
f306b631e3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Interactions/LocalizationManagers/JsonLocalizationManager.cs

+ 1
- 1
src/Discord.Net.Interactions/LocalizationManagers/JsonLocalizationManager.cs View File

@@ -15,7 +15,7 @@ namespace Discord.Interactions

private readonly string _basePath;
private readonly string _fileName;
private readonly Regex _localeParserRegex = new Regex(@"\w+.(?<locale>\w{2}-\w{2}).json", RegexOptions.Compiled | RegexOptions.Singleline);
private readonly Regex _localeParserRegex = new Regex(@"\w+.(?<locale>\w{2}(?:-\w{2})?).json", RegexOptions.Compiled | RegexOptions.Singleline);

public JsonLocalizationManager(string basePath, string fileName)
{


Loading…
Cancel
Save