X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Futil%2FParseHtmlBodyAndLinks.java;h=5263454310dadf586e523d1a3b874969c206ee00;hb=a5b213c59c8b5ae9003aca24beb406a9c0aed1ec;hp=a937b3bf51cd27314d8be62230aec0a050c06f8e;hpb=ab43013b7e357b84b4abade0dba949668dfb2a0e;p=jalview.git diff --git a/src/jalview/util/ParseHtmlBodyAndLinks.java b/src/jalview/util/ParseHtmlBodyAndLinks.java index a937b3b..5263454 100644 --- a/src/jalview/util/ParseHtmlBodyAndLinks.java +++ b/src/jalview/util/ParseHtmlBodyAndLinks.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. * @@ -32,6 +32,9 @@ import java.util.regex.Pattern; */ public class ParseHtmlBodyAndLinks { + private static final Pattern LEFT_ANGLE_BRACKET_PATTERN = Pattern + .compile("<"); + String orig = null; public String getOrig() @@ -153,7 +156,7 @@ public class ParseHtmlBodyAndLinks { // instead of parsing the html into plaintext // clean the description ready for embedding in html - sb = new StringBuffer(Pattern.compile("<").matcher(description) + sb = new StringBuffer(LEFT_ANGLE_BRACKET_PATTERN.matcher(description) .replaceAll("<")); }