X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FParseHtmlBodyAndLinks.java;h=7aec22d84cfa06b1605f90a2680850241d3065a7;hb=be32c14cd8e48fe0a207cd7030cb9cd46f894678;hp=2330cca88b5f5320ef784a6cd99eb0a7a2be84ef;hpb=47168f025aefdaa044802bd5f8f510ffe43a4808;p=jalview.git diff --git a/src/jalview/util/ParseHtmlBodyAndLinks.java b/src/jalview/util/ParseHtmlBodyAndLinks.java index 2330cca..7aec22d 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.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. * @@ -32,6 +32,8 @@ 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 +155,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("<")); }