Skip to content

Commit

Permalink
Fix #94
Browse files Browse the repository at this point in the history
Bump the version number
  • Loading branch information
rampaa committed Jul 20, 2024
1 parent 3753df5 commit d650781
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion JL.Core/Dicts/EPWING/Yomichan/EpwingYomichanLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static async Task Load(Dict dict)
}

IEnumerable<string> jsonFiles = Directory.EnumerateFiles(fullPath, "*_bank_*.json", SearchOption.TopDirectoryOnly)
.Where(static s => s.StartsWith("term", StringComparison.Ordinal) || s.StartsWith("kanji", StringComparison.Ordinal));
.Where(static s => s.Contains("term", StringComparison.Ordinal) || s.Contains("kanji", StringComparison.Ordinal));

foreach (string jsonFile in jsonFiles)
{
Expand Down
2 changes: 1 addition & 1 deletion JL.Core/Freqs/FrequencyYomichan/FrequencyYomichanLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static async Task Load(Freq freq)
}

IEnumerable<string> jsonFiles = Directory.EnumerateFiles(fullPath, "*_bank_*.json", SearchOption.TopDirectoryOnly)
.Where(static s => s.StartsWith("term", StringComparison.Ordinal) || s.StartsWith("kanji", StringComparison.Ordinal));
.Where(static s => s.Contains("term", StringComparison.Ordinal) || s.Contains("kanji", StringComparison.Ordinal));

foreach (string jsonFile in jsonFiles)
{
Expand Down
2 changes: 1 addition & 1 deletion JL.Core/Utilities/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace JL.Core.Utilities;

public static partial class Utils
{
public static readonly Version JLVersion = new(2, 2, 0);
public static readonly Version JLVersion = new(2, 2, 1);
public static readonly string ApplicationPath = AppContext.BaseDirectory;
public static readonly string ResourcesPath = Path.Join(AppContext.BaseDirectory, "Resources");
public static readonly string ConfigPath = Path.Join(AppContext.BaseDirectory, "Config");
Expand Down
2 changes: 1 addition & 1 deletion JL.Windows/GUI/AddDictionaryWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private void SaveButton_Click(object sender, RoutedEventArgs e)
else
{
bool validPath = Directory.EnumerateFiles(fullPath, "*_bank_*.json", SearchOption.TopDirectoryOnly)
.Any(static s => s.StartsWith("term", StringComparison.Ordinal) || s.StartsWith("kanji", StringComparison.Ordinal));
.Any(static s => s.Contains("term", StringComparison.Ordinal) || s.Contains("kanji", StringComparison.Ordinal));

if (!validPath)
{
Expand Down
2 changes: 1 addition & 1 deletion JL.Windows/GUI/AddFrequencyWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private void SaveButton_Click(object sender, RoutedEventArgs e)
if (type is FreqType.Yomichan or FreqType.YomichanKanji)
{
bool validPath = Directory.EnumerateFiles(fullPath, "*_bank_*.json", SearchOption.TopDirectoryOnly)
.Any(static s => s.StartsWith("term", StringComparison.Ordinal) || s.StartsWith("kanji", StringComparison.Ordinal));
.Any(static s => s.Contains("term", StringComparison.Ordinal) || s.Contains("kanji", StringComparison.Ordinal));

if (!validPath)
{
Expand Down
2 changes: 1 addition & 1 deletion JL.Windows/GUI/EditDictionaryWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private void SaveButton_Click(object sender, RoutedEventArgs e)
else
{
bool validPath = Directory.EnumerateFiles(fullPath, "*_bank_*.json", SearchOption.TopDirectoryOnly)
.Any(static s => s.StartsWith("term", StringComparison.Ordinal) || s.StartsWith("kanji", StringComparison.Ordinal));
.Any(static s => s.Contains("term", StringComparison.Ordinal) || s.Contains("kanji", StringComparison.Ordinal));

if (!validPath)
{
Expand Down
2 changes: 1 addition & 1 deletion JL.Windows/GUI/EditFrequencyWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private void SaveButton_Click(object sender, RoutedEventArgs e)
if (_freq.Type is FreqType.Yomichan or FreqType.YomichanKanji)
{
bool hasValidFiles = Directory.EnumerateFiles(fullPath, "*_bank_*.json", SearchOption.TopDirectoryOnly)
.Any(static s => s.StartsWith("term", StringComparison.Ordinal) || s.StartsWith("kanji", StringComparison.Ordinal));
.Any(static s => s.Contains("term", StringComparison.Ordinal) || s.Contains("kanji", StringComparison.Ordinal));

if (!hasValidFiles)
{
Expand Down

0 comments on commit d650781

Please sign in to comment.