boolean diff = (gapCharacter != other.gapCharacter);
diff |= vseparable != other.vseparable;
diff |= hseparable != other.hseparable;
- diff |= !(urlSuffix.equals(other.urlSuffix));
+ diff |= !(urlSuffix == null && other.urlSuffix == null || (urlSuffix != null
+ && other.urlSuffix != null && urlSuffix.equals(other.urlSuffix)));
// TODO - robust diff that includes constants and reordering of URL
// diff |= !(postUrl.equals(other.postUrl));
// diff |= !inputParams.equals(other.inputParams);
return invalidMessage == null;
}
- private static boolean debug = false;
+ private static boolean debug = true;
/**
* parse the string into a list
{
int seplen = separator.length();
if (list == null || list.equals("") || list.equals(separator))
+ {
return null;
+ }
java.util.ArrayList<String> jv = new ArrayList<String>();
int cp = 0, pos, escape;
boolean wasescaped = false, wasquoted = false;
jv.set(jv.size() - 1,
lstitem = lstitem + separator
+ list.substring(cp, pos + escape));
-
}
else
{
}
cp = pos + seplen;
wasescaped = escape == -1;
- if (!wasescaped)
- {
- // last separator may be in an unmatched quote
- if (java.util.regex.Pattern.matches("('[^']*')*[^']*'", lstitem))
- {
- wasquoted = true;
- }
- }
-
+ // last separator may be in an unmatched quote
+ wasquoted = (java.util.regex.Pattern.matches(".*='[^']*(?!')",
+ lstitem));
}
if (cp < list.length())
{