Skip to content

Commit

Permalink
Merge branch 'feature/better_regex' into develop
Browse files Browse the repository at this point in the history
Conflicts:
	taterm.vala
  • Loading branch information
Thomas Weißschuh committed Feb 19, 2012
2 parents f40d62c + 079c321 commit 2d4add3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion taterm.vala
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ class taterm : Gtk.Application
class Terminal : Vte.Terminal
{

static string regex_string = "[^ \n\r\t]*://.*[^ \n\r\t]";
/* TODO: split regex string */
/* scheme user host port path query part*/
static string regex_string = "[a-z][a-z+.-]+:[//]?.+(:?.*@)?.*(:\\d{1-5})?(/.*)*(\\?.*)?(#\\w*)?";
/* TODO don't match '/' here ^ */
string match_uri = null;
GLib.Regex uri_regex;

Expand Down

0 comments on commit 2d4add3

Please sign in to comment.