Skip to content

Commit d52697a

Browse files
committed
Remove redundant comments
1 parent d8a8721 commit d52697a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/app/conf/2025/schedule/[id]/format-description.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const COMBINED_REGEX =
55
export function formatDescription(text: string): string {
66
return text.replace(COMBINED_REGEX, (match, anchorTag, standaloneUrl) => {
77
if (anchorTag) {
8-
// Handle existing anchor tag
98
const linkMatch = anchorTag.match(
109
/<a\s+([^>]*href\s*=\s*[^>]*)>(.*?)<\/a>/i,
1110
)
@@ -31,7 +30,6 @@ export function formatDescription(text: string): string {
3130
)
3231
}
3332

34-
// Format URL content to show just domain
3533
const urlContent = content.replace(
3634
/https?:\/\/[^\s]+/g,
3735
(url: string) => {
@@ -41,7 +39,6 @@ export function formatDescription(text: string): string {
4139

4240
return `<a ${attrs}>${urlContent}</a>`
4341
} else if (standaloneUrl) {
44-
// Handle standalone URL
4542
const displayUrl = standaloneUrl.replace(/^https?:\/\//, "")
4643
return `<a href="${standaloneUrl}" target="_blank" rel="noopener noreferrer" class="typography-link">${displayUrl}</a>`
4744
}

0 commit comments

Comments
 (0)