mirror of
https://github.com/pupperpowell/bibdle.git
synced 2026-04-05 17:33:31 -04:00
removed verse snippet from share
This commit is contained in:
@@ -17,7 +17,7 @@ export function getVerseSnippet(verseText: string): string {
|
||||
}
|
||||
|
||||
const start = posAfterWord(10);
|
||||
const end = posAfterWord(25);
|
||||
const end = posAfterWord(18);
|
||||
|
||||
// Find first punctuation mark between words 10 and 25
|
||||
const range = text.substring(start, end);
|
||||
@@ -74,13 +74,13 @@ export function generateShareText(params: {
|
||||
const bookEmoji = isLoggedIn ? "📜" : "📖";
|
||||
|
||||
const guessWord = guesses.length === 1 ? "guess" : "guesses";
|
||||
const streakPart = streak !== undefined && streak > 1 ? ` (${streak} days🔥)` : "";
|
||||
const streakPart = streak !== undefined && streak > 1 ? ` ${streak} days 🔥` : "";
|
||||
const chapterStar = guesses.length === 1 && chapterCorrect ? " ⭐" : "";
|
||||
|
||||
const lines = [
|
||||
`${bookEmoji} Bibdle | ${formattedDate} ${bookEmoji}`,
|
||||
getVerseSnippet(verseText),
|
||||
`${emojis}${chapterStar} ${guesses.length} ${guessWord}${streakPart}`,
|
||||
`${guesses.length} ${guessWord},${streakPart}`,
|
||||
`${emojis}${chapterStar}`,
|
||||
origin,
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user