diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2015-03-27 00:01:18 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2015-03-27 00:01:18 +0100 |
commit | 6f0cdcef501d52c74f189d9735f08142958afb58 (patch) | |
tree | 109f5d682f4a9fe6962cffdd6829a3c7819e451d | |
parent | 3c8d22bb427fc645227fa94b335b9bccb82f5bbc (diff) | |
download | cgeo-6f0cdcef501d52c74f189d9735f08142958afb58.zip cgeo-6f0cdcef501d52c74f189d9735f08142958afb58.tar.gz cgeo-6f0cdcef501d52c74f189d9735f08142958afb58.tar.bz2 |
Fix obvious typo in regex
-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 cfd3642..2668fbf 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCConstants.java +++ b/main/src/cgeo/geocaching/connector/gc/GCConstants.java @@ -72,7 +72,7 @@ public final class GCConstants { public static final String MEMBER_STATUS_PREMIUM = "Premium"; public static final String MEMBER_STATUS_CHARTER = "Charter"; /** Use replaceAll("[,.]","") on the resulting string before converting to an int */ - static final Pattern PATTERN_CACHES_FOUND = Pattern.compile("<span[^>]*>.*?([\\d,.]+) Find?", Pattern.DOTALL); + static final Pattern PATTERN_CACHES_FOUND = Pattern.compile("<span[^>]*>.*?([\\d,.]+) Finds?", Pattern.DOTALL); static final Pattern PATTERN_AVATAR_IMAGE_PROFILE_PAGE = Pattern.compile("src=\"(https?://(img(?:cdn)?\\.geocaching\\.com|[^>\"]+\\.cloudfront\\.net)/avatar/[0-9a-f-]+\\.jpg)\"[^>]*alt=\""); static final Pattern PATTERN_LOGIN_NAME_LOGIN_PAGE = Pattern.compile("ctl00_ContentBody_lbUsername\">.*<strong>(.*)</strong>"); static final Pattern PATTERN_CUSTOMDATE = Pattern.compile("<option selected=\"selected\" value=\"([ /.Mdy-]+)\">"); |