replaced trailing punctuation in verses with ellipses

This commit is contained in:
George Powell
2026-01-05 18:12:10 -05:00
parent 1b1bc7bd3c
commit cb11d793f6
2 changed files with 46 additions and 32 deletions

View File

@@ -13,10 +13,12 @@
? dailyVerse.reference
.replace(/^Psalms /, "Psalm ")
.replace(/\s(\d+):/, " ?:")
: dailyVerse.reference.replace(/^Psalms /, "Psalm ")
: dailyVerse.reference.replace(/^Psalms /, "Psalm "),
);
let displayVerseText = $derived(
dailyVerse.verseText.replace(/^([a-z])/, (c) => c.toUpperCase())
dailyVerse.verseText
.replace(/^([a-z])/, (c) => c.toUpperCase())
.replace(/[,:;-—]$/, "..."),
);
</script>

16
todo.md
View File

@@ -1,8 +1,7 @@
# in progress
- Show new/old testament after 3 guesses and section after 7 guesses
- Verses ending in semicolons, commas, etc. will be replaced with "..."
- For bonus points: guess the verse/psalm number
- How do you balance rewarding knowledge vs incentivising learning?
# todo
@@ -54,6 +53,19 @@ I created Bibdle from a combination of two things. The first is my lifelong desi
# done
## january 5th
- Verses ending in semicolons, commas, etc. will be replaced with "..."
## january 4th
- For bonus points: guess the verse/psalm number
- major UI styling revamp
## december 30th
- merged the embeddings/similarity route into production
## december 27th
- add event log to submitting first-guess or correct-guess to umami (to make bounce rate more accurate)