Skip to content

Commit

Permalink
Merge pull request #323 from homebase-id/case-insensitive-link-search
Browse files Browse the repository at this point in the history
fix: activate link previews irrespective of case
  • Loading branch information
2002Bishwajeet authored Jan 30, 2025
2 parents c9a6272 + e2c5f13 commit 753c54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mobile/src/components/Chat/Link-Preview-Bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type LinkPreviewProps = {

export const LinkPreviewBar = memo(
({ textToSearchIn, onDismiss, onLinkData }: LinkPreviewProps) => {
const link = textToSearchIn.match(/(https?:\/\/[^\s]+)/g)?.[0];
const link = textToSearchIn.match(/(https?:\/\/[^\s]+)/gi)?.[0];
const { data, isLoading } = useLinkPreview(link).get;
const [isVisible, setIsVisible] = useState(false);

Expand Down

0 comments on commit 753c54d

Please sign in to comment.