diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2015-03-31 07:49:31 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2015-03-31 07:49:31 +0200 |
commit | ae56d9a4b787b286a79a282907f1cc05f8b3f5c5 (patch) | |
tree | 6f3a8ed8a7c5d0b87a441f1456e0598f729b02f0 /main | |
parent | 6165ec4f26ba5860c5e3da2913bf6accc49d199e (diff) | |
download | cgeo-ae56d9a4b787b286a79a282907f1cc05f8b3f5c5.zip cgeo-ae56d9a4b787b286a79a282907f1cc05f8b3f5c5.tar.gz cgeo-ae56d9a4b787b286a79a282907f1cc05f8b3f5c5.tar.bz2 |
fix #4809: login failed on main screen
Diffstat (limited to 'main')
-rw-r--r-- | main/src/cgeo/geocaching/connector/gc/GCConstants.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/GCConstants.java b/main/src/cgeo/geocaching/connector/gc/GCConstants.java index 2668fbf..1b4c5a6 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCConstants.java +++ b/main/src/cgeo/geocaching/connector/gc/GCConstants.java @@ -67,7 +67,7 @@ public final class GCConstants { final static Pattern PATTERN_RELATED_WEB_PAGE = Pattern.compile("id=\"ctl00_ContentBody_uxCacheUrl\" title=\"Related Web Page\" href=\"(.*?)\">"); // Info box top-right - public static final Pattern PATTERN_LOGIN_NAME = Pattern.compile("\"SignedInProfileLink\">(.*?)</a>"); + public static final Pattern PATTERN_LOGIN_NAME = Pattern.compile("class=\"li-user-info\"[^>]*>.*?<span>(.*?)</span>", Pattern.DOTALL); public static final Pattern PATTERN_MEMBERSHIP = Pattern.compile("<dl class=\"membership-details\">.*?<dt>Membership</dt>.*?<dd>\\s*(\\p{Alpha}+)\\s*</dd>", Pattern.DOTALL); public static final String MEMBER_STATUS_PREMIUM = "Premium"; public static final String MEMBER_STATUS_CHARTER = "Charter"; |