diff options
| author | blafoo <github@blafoo.de> | 2011-12-06 23:53:56 +0100 |
|---|---|---|
| committer | blafoo <github@blafoo.de> | 2011-12-06 23:53:56 +0100 |
| commit | a98fec3cb50af21d9ca64deeb43bdc9db16131c1 (patch) | |
| tree | f70eec320d89b3bce5d49d6f18721c887aba9b07 | |
| parent | 29592ab8849042ce33eb6e4fd279c6a734d0cae1 (diff) | |
| download | cgeo-a98fec3cb50af21d9ca64deeb43bdc9db16131c1.zip cgeo-a98fec3cb50af21d9ca64deeb43bdc9db16131c1.tar.gz cgeo-a98fec3cb50af21d9ca64deeb43bdc9db16131c1.tar.bz2 | |
RegEx enhancement due to GC.com update
| -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 2b0caee..0981096 100644 --- a/main/src/cgeo/geocaching/GCConstants.java +++ b/main/src/cgeo/geocaching/GCConstants.java @@ -25,7 +25,7 @@ public final class GCConstants { public final static Pattern PATTERN_SIZE = Pattern.compile("<div class=\"CacheSize[^\"]*\">[^<]*<p[^>]*>[^S]*Size[^:]*:[^<]*<span[^>]*>[^<]*<img src=\"[^\"]*/icons/container/[a-z_]+\\.gif\" alt=\"Size: ([^\"]+)\"[^>]*>[^<]*<small>[^<]*</small>[^<]*</span>[^<]*</p>"); public final static Pattern PATTERN_LATLON = Pattern.compile("<span id=\"uxLatLon\" style=\"font-weight:bold;\"[^>]*>(.*?)</span>"); public final static Pattern PATTERN_LATLON_ORIG = Pattern.compile("\\{\"isUserDefined\":true[^}]+?\"oldLatLngDisplay\":\"([^\"]+)\"\\}"); - public final static Pattern PATTERN_LOCATION = Pattern.compile("<span id=\"ctl00_ContentBody_Location\">In (.*?)<"); + public final static Pattern PATTERN_LOCATION = Pattern.compile("<span id=\"ctl00_ContentBody_Location\">In (?:<a href=[^>]*>)(.*?)<"); public final static Pattern PATTERN_PERSONALNOTE = Pattern.compile("<p id=\"cache_note\"[^>]*>(.*?)</p>"); public final static Pattern PATTERN_NAME = Pattern.compile("<span id=\"ctl00_ContentBody_CacheName\">(.*?)</span>"); public final static Pattern PATTERN_DIFFICULTY = Pattern.compile("<span id=\"ctl00_ContentBody_uxLegendScale\"[^>]*>[^<]*<img src=\"[^\"]*/images/stars/stars([0-9_]+)\\.gif\" alt=\""); |
