diff options
Diffstat (limited to 'src/components/widgets/Steps2.astro')
| -rw-r--r-- | src/components/widgets/Steps2.astro | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/widgets/Steps2.astro b/src/components/widgets/Steps2.astro index 0891663..7a84282 100644 --- a/src/components/widgets/Steps2.astro +++ b/src/components/widgets/Steps2.astro @@ -23,7 +23,10 @@ const { function makeEmailsClickable(text: string | undefined): string { if (!text) return ''; const emailRegex = /([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/g; - return text.replace(emailRegex, '<a href="mailto:$1" class="text-primary hover:text-secondary transition-colors">$1</a>'); + return text.replace( + emailRegex, + '<a href="mailto:$1" class="text-primary hover:text-secondary transition-colors">$1</a>' + ); } --- @@ -67,7 +70,10 @@ function makeEmailsClickable(text: string | undefined): string { </div> <div class="pl-4 rtl:pl-0 rtl:pr-4"> <h3 class="mb-4 text-xl font-semibold font-heading" set:html={title2} /> - <p class="text-muted dark:text-gray-400" set:html={description ? makeEmailsClickable(description) : ''} /> + <p + class="text-muted dark:text-gray-400" + set:html={description ? makeEmailsClickable(description) : ''} + /> </div> </li> )) |
