Skip to content

Commit

Permalink
Fix hiding content files
Browse files Browse the repository at this point in the history
  • Loading branch information
russcam committed Aug 6, 2024
1 parent ce93f60 commit b93dd15
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Lingua.sln
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{79ABD769-B64
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{456E3B5A-9369-47BF-9475-35291F4BC2AD}"
ProjectSection(SolutionItems) = preProject
build\SearchPioneer.Lingua.props = build\SearchPioneer.Lingua.props
build\SearchPioneer.Lingua.targets = build\SearchPioneer.Lingua.targets
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{E1B88B6E-C9A6-41FF-8448-20626D3E9FDB}"
EndProject
Expand Down
2 changes: 1 addition & 1 deletion build/SearchPioneer.Lingua.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Can be removed once https://github.com/NuGet/Home/issues/4856 is resolved -->
<ItemGroup>
<Content Update="@(Content)">
<Visible Condition="'%(NuGetItemType)' == 'Content' and '%(NuGetPackageId)' == 'Lingua'">False</Visible>
<Visible Condition="'%(NuGetItemType)' == 'Content' and '%(NuGetPackageId)' == 'SearchPioneer.Lingua'">False</Visible>
</Content>
</ItemGroup>
</Project>
8 changes: 4 additions & 4 deletions src/Lingua/Internal/Alphabet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,27 +84,27 @@ internal static class AlphabetExtensions
};

/// <summary>
/// Whether the the alphabet script matches character script.
/// Whether the alphabet script matches character script.
/// </summary>
/// <param name="alphabet">The alphabet to check</param>
/// <param name="ch">The character to check</param>
/// <returns><c>true</c> if the scripts match, false otherwise</returns>
/// <returns><c>true</c> if the scripts match, <c>false</c> otherwise</returns>
public static bool Matches(this Alphabet alphabet, char ch) => ch.GetScript() == alphabet.Script();

/// <summary>
/// Whether the alphabet script matches the given script.
/// </summary>
/// <param name="alphabet">The alphabet to check</param>
/// <param name="script">The script to check</param>
/// <returns><c>true</c> if the scripts match, false otherwise</returns>
/// <returns><c>true</c> if the scripts match, <c>false</c> otherwise</returns>
public static bool Matches(this Alphabet alphabet, UnicodeScript script) => script == alphabet.Script();

/// <summary>
/// Whether the alphabet script matches script of all characters in the text.
/// </summary>
/// <param name="alphabet">The alphabet to check</param>
/// <param name="text">The text to check</param>
/// <returns><c>true</c> if the scripts match for all characters, false otherwise</returns>
/// <returns><c>true</c> if the scripts match for all characters, <c>false</c> otherwise</returns>
public static bool Matches(this Alphabet alphabet, string text)
{
var unicodeScript = alphabet.Script();
Expand Down

0 comments on commit b93dd15

Please sign in to comment.