Fixed little things

This commit is contained in:
Simon Martens
2022-11-11 18:10:45 +01:00
parent 7247640b0e
commit 3eaa97390d
7 changed files with 34 additions and 18 deletions

View File

@@ -40,13 +40,15 @@ public class SearchRules {
}
sb.Remove(0, sb.Length - sw.Length);
}
} else {
if (t.ToUpperInvariant().Contains(sw)) {
if (reader.State.Results == null)
reader.State.Results = new List<(string Page, string Line, string Identifier)>();
reader.State.Results.Add((reader.CurrentPage, reader.CurrentLine, reader.State.CurrentIdentifier));
}
}
}
// Enable, if zou want unparsed context tto be conidered when searching.
// else {
// if (t.ToUpperInvariant().Contains(sw)) {
// if (reader.State.Results == null)
// reader.State.Results = new List<(string Page, string Line, string Identifier)>();
// reader.State.Results.Add((reader.CurrentPage, reader.CurrentLine, reader.State.CurrentIdentifier));
// }
// }
}
})
};