Skip to content

Commit

Permalink
fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
marthasharkey committed Mar 5, 2025
1 parent 0f95eae commit af17d82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const formatText = (input: string, textFormatterSelected: TextFormatOptio
: match
}
const newString = replaceReturns.replace(/[\s]/g, function (match: string) {
const mapping = textFormatterSelected.value === 'full' ? fullMappings : partialMappings
const mapping = textFormatterSelected === 'full' ? fullMappings : partialMappings
return mapping[match as keyof typeof mapping] || renderOtherWhitespace(match)
})
return `<span > ${newString} <span>`
Expand Down

0 comments on commit af17d82

Please sign in to comment.