generally improved

This commit is contained in:
2025-03-29 11:43:47 -06:00
parent 8a10b62755
commit 8d8bba1ccc
2 changed files with 30 additions and 14 deletions

View File

@@ -78,7 +78,7 @@ pub fn search_for_word(word: &str, from_files: &Bible) -> Vec<String> {
for book in &test.books {
for chapter in &book.chapters {
for verse in &chapter.verses {
if verse.text.contains(word) {
if verse.text.to_lowercase().contains(&word.to_lowercase()) {
found.push(format!("{} {}:{}", BOOKS_IN_ORDER[book.number-1], chapter.number, verse.number));
}
}