Skip to content

Commit

Permalink
Merge pull request #32095 from bernhardoj/fix/31731-email-treated-as-url
Browse files Browse the repository at this point in the history
Fix "Copy URL to clipboard" shown for an email
  • Loading branch information
lakchote authored Nov 29, 2023
2 parents 2095b2c + 75ee9fb commit aa42ddc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function BaseAnchorForCommentsOnly({onPressIn, onPressOut, href = '', rel = '',
linkProps.href = href;
}
const defaultTextStyle = DeviceCapabilities.canUseTouchScreen() || isSmallScreenWidth ? {} : {...styles.userSelectText, ...styles.cursorPointer};
const isEmail = Str.isValidEmailMarkdown(href.replace(/mailto:/i, ''));
const isEmail = Str.isValidEmail(href.replace(/mailto:/i, ''));

return (
<PressableWithSecondaryInteraction
Expand Down

0 comments on commit aa42ddc

Please sign in to comment.