git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAl-1705 ENSEMBL cDNA type cannot be queried with peptide IDs
[jalview.git]
/
src
/
jalview
/
util
/
ParseHtmlBodyAndLinks.java
diff --git
a/src/jalview/util/ParseHtmlBodyAndLinks.java
b/src/jalview/util/ParseHtmlBodyAndLinks.java
index
19726b9
..
7aec22d
100644
(file)
--- a/
src/jalview/util/ParseHtmlBodyAndLinks.java
+++ b/
src/jalview/util/ParseHtmlBodyAndLinks.java
@@
-32,6
+32,8
@@
import java.util.regex.Pattern;
*/
public class ParseHtmlBodyAndLinks
{
*/
public class ParseHtmlBodyAndLinks
{
+ private static final Pattern LEFT_ANGLE_BRACKET_PATTERN = Pattern.compile("<");
+
String orig = null;
public String getOrig()
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
{
// 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("<"));
}
.replaceAll("<"));
}