Skip to content

Commit

Permalink
fix email treated as url
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Nov 28, 2023
1 parent fcddbee commit 75ee9fb
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 75ee9fb

Please sign in to comment.