Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

url's in irc cut off on wrong character in drop-down-terminal #59

Open
rduivenvoorde opened this issue Dec 8, 2013 · 4 comments
Open

Comments

@rduivenvoorde
Copy link

to be honest I'm not sure if it IS a drop-down-terminal problem.
but I have a screen session on a remote server where I have irc running showing me github updates (#qgis on freenode)

if I connect to the screen session via ssh, I can ctrl-click on url's in the irc session like: http://hub.qgis.org/issues/9174#change-46831 and it will open my browser on that issue anchor. But in the drop down terminal ctrl-hovering or ctrl-clicking over the same url, the link stops at the # sign.

As said, I'm not a terminal-type guru. So maybe it is configuration related?

@aperezdc
Copy link

aperezdc commented Mar 6, 2014

This is an issue with the regular expressions used to match URLs. If you edit terminal.js, around line 126, change this:

  { pattern: SchemePattern + "//(?:" + UserPassPattern + "\\@)?" + HostPattern + PortPattern + UrlPathPattern, flavor: UriFlavor.AsIs },

to this:

  { pattern: "(?:ftp|http)s?://[-a-zA-Z0-9.?$%&/=_~#.,:;+]*", flavor: UriFlavor.AsIs },

and the whole URL will be matched correctly.

(Coincidentally this is the URL match regexp I am using here.)

@Gottox
Copy link

Gottox commented Aug 7, 2014

Can you release a fixed version?

Thanks :)

@johanfleury
Copy link

Hi.

This is what I experienced:

@Gottox
Copy link

Gottox commented Jun 20, 2015

Same for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants