X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FUrlLink.java;h=429709097569f5c7db4bfb4a46df116f3e86e747;hb=e838644df5d5a10a16cf0ad7fb23d24dd7d2729a;hp=6d80338dcf73df7acfb356977e05bc00522092a4;hpb=ab43013b7e357b84b4abade0dba949668dfb2a0e;p=jalview.git diff --git a/src/jalview/util/UrlLink.java b/src/jalview/util/UrlLink.java index 6d80338..4297090 100644 --- a/src/jalview/util/UrlLink.java +++ b/src/jalview/util/UrlLink.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2b1) - * Copyright (C) 2014 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -208,8 +208,7 @@ public class UrlLink if (ns == 0) { // take whole regex - return new String[] - { rg.stringMatched(), + return new String[] { rg.stringMatched(), url_prefix + rg.stringMatched() + url_suffix }; } /* * else if (ns==1) { // take only subgroup match return new String[] @@ -288,13 +287,11 @@ public class UrlLink } // just return simple url substitution. - return new String[] - { idstring, url_prefix + idstring + url_suffix }; + return new String[] { idstring, url_prefix + idstring + url_suffix }; } else { - return new String[] - { "", url_prefix }; + return new String[] { "", url_prefix }; } } @@ -329,8 +326,7 @@ public class UrlLink public static void main(String argv[]) { - String[] links = new String[] - { + String[] links = new String[] { /* * "AlinkT|Target|http://foo.foo.soo/", * "myUrl1|http://$SEQUENCE_ID=/[0-9]+/=$.someserver.org/foo", @@ -346,8 +342,7 @@ public class UrlLink * , "NOTFER|http://notfer.org/$SEQUENCE_ID=/(?