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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user