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
Merge branch 'develop' of https://source.jalview.org/git/jalview into develop
[jalview.git]
/
src
/
jalview
/
ws
/
rest
/
InputType.java
diff --git
a/src/jalview/ws/rest/InputType.java
b/src/jalview/ws/rest/InputType.java
index
dc4a30c
..
69f1d95
100644
(file)
--- a/
src/jalview/ws/rest/InputType.java
+++ b/
src/jalview/ws/rest/InputType.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.
*
*
* This file is part of Jalview.
*
@@
-46,6
+46,9
@@
import org.apache.http.entity.mime.content.StringBody;
*/
public abstract class InputType
{
*/
public abstract class InputType
{
+ private static final Pattern URL_PATTERN = Pattern
+ .compile("^([^=]+)=?'?([^']*)?'?");
+
/**
* not used yet
*/
/**
* not used yet
*/
@@
-209,7
+212,7
@@
public abstract class InputType
boolean valid = true;
for (String tok : tokenstring)
{
boolean valid = true;
for (String tok : tokenstring)
{
- Matcher mtch = Pattern.compile("^([^=]+)=?'?([^']*)?'?").matcher(tok);
+ Matcher mtch = URL_PATTERN.matcher(tok);
if (mtch.find())
{
try
if (mtch.find())
{
try