diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/chat/ChatUtil.as b/bigbluebutton-client/src/org/bigbluebutton/modules/chat/ChatUtil.as index 53a3a62689..5a9fa8bf1e 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/chat/ChatUtil.as +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/chat/ChatUtil.as @@ -54,7 +54,7 @@ package org.bigbluebutton.modules.chat } public static function parseURLs( message : String ) : String{ - var urlPattern : RegExp = /(http|ftp|https|www)(:\/\/[\w\-_]+)?(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?/g; + var urlPattern : RegExp = /(http|ftp|https|www)(:\/\/[^\s\-_]+)?(\.[^\s\-]+)+([\w\-\.,@?^=%&:\/~\+#]*[^\s\-\@?^=%&\/~\+#\(\)])?/g; var resultArray : Array = []; var result : Object;