diff --git a/velog-frontend/src/components/user/UserHead/UserHead.js b/velog-frontend/src/components/user/UserHead/UserHead.js index 4988f31..49967ff 100644 --- a/velog-frontend/src/components/user/UserHead/UserHead.js +++ b/velog-frontend/src/components/user/UserHead/UserHead.js @@ -27,6 +27,7 @@ const UserHead = ({ username, profile, self, following, onToggleFollow, rawTagNa const { github, twitter, facebook, email, url } = profile.profile_links; const hasAccount = !!(github || twitter || facebook); const hasLink = !!(url || email); + const urlRegExr = /(http|https):\/\/([\w+?.\w+])+([a-zA-Z0-9~!@#$%^&*()_\-=+\\/?.:;',]*)?/; return (
@@ -38,19 +39,19 @@ const UserHead = ({ username, profile, self, following, onToggleFollow, rawTagNa
{!self && - following !== undefined && ( -
- {following ? ( - - ) : ( - - )} -
- )} + following !== undefined && ( +
+ {following ? ( + + ) : ( + + )} +
+ )}
@{username}
@@ -87,7 +88,7 @@ const UserHead = ({ username, profile, self, following, onToggleFollow, rawTagNa {url && (
- + {url}