X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FUrlLink.java;h=429709097569f5c7db4bfb4a46df116f3e86e747;hb=4d7f98a6dd54d9863ba449ec79dcd95d25ed863d;hp=c716110ebe7b9c4a2aa10322c35f16f12593a754;hpb=47168f025aefdaa044802bd5f8f510ffe43a4808;p=jalview.git diff --git a/src/jalview/util/UrlLink.java b/src/jalview/util/UrlLink.java index c716110..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.2) - * 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=/(?