From 75ee9fbd66c689dbd771bab1c5d9f8ea9efd7352 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Tue, 28 Nov 2023 18:14:52 +0800 Subject: [PATCH] fix email treated as url --- .../AnchorForCommentsOnly/BaseAnchorForCommentsOnly.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly.js b/src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly.js index 763ca4615c6e..33d6cb014df2 100644 --- a/src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly.js +++ b/src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly.js @@ -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 (