Thank you Shnatsel. What do you guys think of Mefrio's option? If I had "*" for all protocols then "omgwtf://" would be a protocol and that's not right, is it?
Regarding the RegEx syntax, I'll take another look at it because you seem to be right. On Sun, Sep 23, 2012 at 12:16 PM, Sergey "Shnatsel" Davidoff < ser...@elementaryos.org> wrote: > 2012/9/23 David Gomes <da...@elementaryos.org> > >> Hey everyone, >> >> >> https://code.launchpad.net/~elementary-apps/pantheon-terminal/new-protocols >> >> If you have some free time, please check that branch and add some new >> protocols (or tell us about other ones with a reply to this email): >> >> >> this.clickable("""(http?|ftp?|https?|ftps?|irc?|sftp?|mailto?)://\S+"""); >> >> The other day we discussed this on IRC and shnatsel and voldyman told me >> about lots of protocols. The channel wasn't being logged at the time and I >> forgot some of the protocols they suggested. >> > > The following URI schemes are relevant in a terminal: > > ldap, ldaps, nfs, smb, rsync, ssh, rlogin, telnet, git, git+ssh, bzr, > bzr+ssh, svn, svn+ssh > > Depending on the regexp syntax (and you seem to have a really weird one > here, with "?" after every URI option - that typically makes the last > character optional) and implementation details, you also might want to add > matching a delimiter before the URI scheme, so that "omgwtfhttp://" won't > be treated as a URl. > > -- > Sergey "Shnatsel" Davidoff > OS architect @ elementary >
-- Mailing list: https://launchpad.net/~elementary-dev-community Post to : elementary-dev-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~elementary-dev-community More help : https://help.launchpad.net/ListHelp