Skip to content

Commit

Permalink
fix: failing unit tests (#16)
Browse files Browse the repository at this point in the history
* ci: update dotnet version

* fix: failing unit tests
  • Loading branch information
AnsgarLichter authored Mar 4, 2024
1 parent df7b97c commit f2f766c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand Down
3 changes: 1 addition & 2 deletions ExportKindleClippingsToNotion/Parser/ClippingsLanguage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class ClippingsLanguage()
public SupportedLanguages Determine(string clipping)
{
var secondLine = clipping
.Split("\r\n")
.Split("\n")
.Where(line => line.Length > 0)
.Select(line => line.Trim())
.Select(line => line.Replace("\u200B", Empty))
Expand All @@ -29,7 +29,6 @@ public SupportedLanguages Determine(string clipping)
throw new LanguageNotRecognizedException("The language of your clipping can't be recognized!");
}

Console.Write(secondLine);
foreach (var identifier in _languageIdentifiers
.Where(identifier => secondLine.Contains(identifier.Value)))
return identifier.Key;
Expand Down

0 comments on commit f2f766c

Please sign in to comment.