@@ -4,7 +4,7 @@ import FilterTags from "../filterTag/FilterTags";
44import sanitizeHtml from "sanitize-html" ;
55import { Parser } from "html-to-react" ;
66import { getDomainFavicon , getDomainName } from "@/config/mapping-helper" ;
7- import { TruncateLengthInChar , TruncateLinkInChar } from "@/config/config" ;
7+ import { TruncateLengthInChar } from "@/config/config" ;
88import { EsSearchResult } from "@/types" ;
99import DateIcon from "../svgs/DateIcon" ;
1010import ResultFavicon from "./ResultFavicon" ;
@@ -65,11 +65,6 @@ const Result = ({ result }: ResultProps) => {
6565
6666 const sanitizedBody = sanitizeHtml ( getBodyData ( result ) ) . trim ( ) ;
6767
68- const strippedUrl = mappedUrl . replace ( / ^ ( h t t p s ? : \/ \/ ) / i, "" ) ;
69- const truncatedUrl =
70- strippedUrl . length > TruncateLinkInChar
71- ? strippedUrl . substring ( 0 , TruncateLinkInChar ) + "..."
72- : strippedUrl ;
7368 const truncatedBody =
7469 sanitizedBody . length > TruncateLengthInChar
7570 ? sanitizedBody . substring ( 0 , TruncateLengthInChar ) + " ..."
@@ -122,17 +117,6 @@ const Result = ({ result }: ResultProps) => {
122117 >
123118 { siteName }
124119 </ a >
125- < div className = "hidden lg:block w-[2px] h-[2px] lg:w-[6px] lg:h-[6px] rounded-full text-custom-secondary-text bg-custom-black" />
126- < a
127- target = "_blank"
128- className = "text-[12px] lg:text-base leading-none"
129- href = { onlyDomainPath ? tldrUrl : mappedUrl }
130- data-umami-event = "URL Clicked"
131- data-umami-event-src = { mappedUrl }
132- ref = { linkRef }
133- >
134- { truncatedUrl }
135- </ a >
136120 </ div >
137121 </ div >
138122 < div className = "font-mona pointer-events-none flex flex-col gap-2 lg:gap-5 " >
0 commit comments