From: mh Date: Mon, 9 Dec 2002 06:23:38 +0000 (+0000) Subject: fix small email address filtering bug (originally the fix was from Max in the HEAD... X-Git-Tag: MIR_1_0_0_RC4~23 X-Git-Url: http://erislabs.net/gitweb/?p=mir.git;a=commitdiff_plain;h=6867a1bfd55867685368e0d960e5f44f5c300014 fix small email address filtering bug (originally the fix was from Max in the HEAD branch) --- 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); }