aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching
diff options
context:
space:
mode:
authorTorsten Keil <github@torsten-keil.net>2012-02-22 00:25:16 +0100
committerTorsten Keil <github@torsten-keil.net>2012-02-22 00:25:16 +0100
commit0b0106e00af4ca9d99bf2ed00948e78fc7b36689 (patch)
tree007e08292422bba13da5dd1b1c0f65d4e9a617aa /main/src/cgeo/geocaching
parent009c9575e84379612a710955436f703c7a27bdbc (diff)
downloadcgeo-0b0106e00af4ca9d99bf2ed00948e78fc7b36689.zip
cgeo-0b0106e00af4ca9d99bf2ed00948e78fc7b36689.tar.gz
cgeo-0b0106e00af4ca9d99bf2ed00948e78fc7b36689.tar.bz2
Fix for issue#1147: Problem detecting find count
Diffstat (limited to 'main/src/cgeo/geocaching')
-rw-r--r--main/src/cgeo/geocaching/GCConstants.java2
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-]+)\">");