diff --git a/src/com/android/email/activity/MessageView.java b/src/com/android/email/activity/MessageView.java index a0523790a..6de1f45e1 100644 --- a/src/com/android/email/activity/MessageView.java +++ b/src/com/android/email/activity/MessageView.java @@ -950,7 +950,12 @@ public class MessageView extends Activity Matcher m = Regex.WEB_URL_PATTERN.matcher(text); while (m.find()) { int start = m.start(); - if (start != 0 && text.charAt(start - 1) != '@') { + /* + * WEB_URL_PATTERN may match domain part of email address. To detect + * this false match, the character just before the matched string + * should not be '@'. + */ + if (start == 0 || text.charAt(start - 1) != '@') { m.appendReplacement(sb, "$0"); } else {