Added support for recognizing "command://" urls.

Sigh. So not standard.
I suppose I could devise a whole system for registering protocols, and
adding registered protocols to this regexp, but we'll never have another
one of these and this is just easier for now.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4709 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2007-05-14 20:47:33 +00:00
parent d9eaa65c23
commit 9ea934cd82
+2 -1
View File
@@ -237,6 +237,7 @@ public class StringUtil
/** A regular expression that finds URLs. */
protected static const URL_REGEXP :RegExp =
new RegExp("(http|https|ftp)://\\S+", "i");
// recognize some standard protocols, plus 'command', which we use internally
new RegExp("(http|https|ftp|command)://\\S+", "i");
}
}