mirror of
				https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
				synced 2025-10-29 17:25:32 +00:00 
			
		
		
		
	See last commit.
This commit is contained in:
		| @@ -2,5 +2,5 @@ namespace HaWeb.SearchHelpers; | ||||
|  | ||||
| public interface ISearchable { | ||||
|     public string Index { get; } | ||||
|     public string SearchText { get; } | ||||
|     public string? SearchText { get; } | ||||
| } | ||||
| @@ -16,7 +16,7 @@ public class SearchRules { | ||||
|             sb.Append(t); | ||||
|             var sw = reader.State.SearchWord; | ||||
|             if (sb.Length >= sw.Length) { | ||||
|                 if (sb.ToString().ToLower().Contains(sw)) { | ||||
|                 if (sb.ToString().ToUpperInvariant().Contains(sw)) { | ||||
|                     if (reader.State.Results == null) | ||||
|                         reader.State.Results = new List<(string Page, string Line)>(); | ||||
|                     reader.State.Results.Add((reader.CurrentPage, reader.CurrentLine)); | ||||
|   | ||||
| @@ -29,7 +29,7 @@ public static class StringHelpers { | ||||
|                 } | ||||
|             } else { | ||||
|                 skipped = false; | ||||
|                 if (toLower) output.Append(char.ToLower(c)); | ||||
|                 if (toLower) output.Append(char.ToUpperInvariant(c)); | ||||
|                 else output.Append(c); | ||||
|             } | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 schnulller
					schnulller