diff options
author | Bananeweizen <Bananeweizen@gmx.de> | 2012-02-21 21:45:22 -0800 |
---|---|---|
committer | Bananeweizen <Bananeweizen@gmx.de> | 2012-02-21 21:45:22 -0800 |
commit | 039e877c27688ae67da949480df66108dac7c4c6 (patch) | |
tree | 007e08292422bba13da5dd1b1c0f65d4e9a617aa /main/src | |
parent | 009c9575e84379612a710955436f703c7a27bdbc (diff) | |
parent | 0b0106e00af4ca9d99bf2ed00948e78fc7b36689 (diff) | |
download | cgeo-039e877c27688ae67da949480df66108dac7c4c6.zip cgeo-039e877c27688ae67da949480df66108dac7c4c6.tar.gz cgeo-039e877c27688ae67da949480df66108dac7c4c6.tar.bz2 |
Merge pull request #1157 from RoadRunner-/issue#1147
Fix for issue #1147: Problem detecting find count
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/cgeo/geocaching/GCConstants.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/GCConstants.java b/main/src/cgeo/geocaching/GCConstants.java index 8431c1e..af717ee 100644 --- a/main/src/cgeo/geocaching/GCConstants.java +++ b/main/src/cgeo/geocaching/GCConstants.java @@ -57,7 +57,7 @@ public final class GCConstants { public static final Pattern PATTERN_LOGIN_NAME = Pattern.compile("\"SignedInProfileLink\">([^<]+)</a>"); public static final Pattern PATTERN_MEMBER_STATUS = Pattern.compile("<span id=\"ctl00_litPMLevel\" style=\"display: block;\">([^<]+)</span>"); /** Use replaceAll(",","") on the resulting string before converting to an int */ - public static final Pattern PATTERN_CACHES_FOUND = Pattern.compile("title=\"Caches Found\"\\s*/>\\s*([\\d,]+)"); + public static final Pattern PATTERN_CACHES_FOUND = Pattern.compile("title=\"Caches Found\"[\\s\\w=\"/\\.]*/>\\s*([\\d,]+)"); public static final Pattern PATTERN_AVATAR_IMAGE_PROFILE_PAGE = Pattern.compile("<img src=\"(http://img.geocaching.com/user/avatar/[0-9a-f-]+\\.jpg)\"[^>]*\\salt=\"Avatar\""); public static final Pattern PATTERN_LOGIN_NAME_LOGIN_PAGE = Pattern.compile("<span class=\"Success\">You are logged in as[^<]*<strong[^>]*>([^<]+)</strong>[^<]*</span>"); public static final Pattern PATTERN_CUSTOMDATE = Pattern.compile("<option selected=\"selected\" value=\"([ /Mdy-]+)\">"); |