From 6867a1bfd55867685368e0d960e5f44f5c300014 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 9 Dec 2002 06:23:38 +0000 Subject: [PATCH 1/1] fix small email address filtering bug (originally the fix was from Max in the HEAD branch) --- source/mir/misc/StringUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/mir/misc/StringUtil.java b/source/mir/misc/StringUtil.java index 6a3eb9d8..4315a452 100755 --- a/source/mir/misc/StringUtil.java +++ b/source/mir/misc/StringUtil.java @@ -40,7 +40,7 @@ import gnu.regexp.*; /** * Statische Hilfsmethoden zur Stringbehandlung * - * @version $Id: StringUtil.java,v 1.23.2.2 2002/11/28 05:52:40 mh Exp $ + * @version $Id: StringUtil.java,v 1.23.2.3 2002/12/09 06:23:38 mh Exp $ * @author rk, mir-coders group * */ @@ -56,7 +56,7 @@ public final class StringUtil { //precompile regex re_newline2br = new RE("(\r?\n){1}"); re_brbr2p = new RE("(
\r?\n
){1,}"); - re_mail = new RE("([a-zA-Z0-9_.-]+)@([a-zA-Z0-9_-]+).([a-zA-Z0-9_.-]+)"); + re_mail = new RE("([a-zA-Z0-9_.-]+)@([a-zA-Z0-9_-]+)\\.([a-zA-Z0-9_.-]+)"); re_url = new RE("((https://)|(http://)|(ftp://)){1}([a-zA-Z0-9_-]+).([a-zA-Z0-9_.:-]+)/?([^ \t\r\n<>\\)\\]]+[^ \t\r\n.,<>\\)\\]])"); re_tags = new RE("<[^>]*>",RE.REG_ICASE); } -- 2.11.0