diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2011-11-08 22:58:57 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2011-11-08 22:59:55 +0100 |
| commit | 6c1d0694a8998342ac27e1c46d15e4396feb9ded (patch) | |
| tree | 8595842d72ee65b9df1b346ce5d2d4b7af3d7900 | |
| parent | df4c8020c942189ea7854e11baef81a48a88d6ef (diff) | |
| download | cgeo-6c1d0694a8998342ac27e1c46d15e4396feb9ded.zip cgeo-6c1d0694a8998342ac27e1c46d15e4396feb9ded.tar.gz cgeo-6c1d0694a8998342ac27e1c46d15e4396feb9ded.tar.bz2 | |
Fix trackable name parsing following gc.com update
<h2>...</h2> has been transformed into <h2 class="WrapFix">...</h2>.
| -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 1bfda84..cd4abd8 100644 --- a/main/src/cgeo/geocaching/GCConstants.java +++ b/main/src/cgeo/geocaching/GCConstants.java @@ -55,7 +55,7 @@ public final class GCConstants { public final static Pattern PATTERN_TRACKABLE_ID = Pattern.compile("<a id=\"ctl00_ContentBody_LogLink\" title=\"[^\"]*\" href=\".*log\\.aspx\\?wid=([a-z0-9\\-]+)\"[^>]*>[^<]*</a>"); public final static Pattern PATTERN_TRACKABLE_GEOCODE = Pattern.compile("<span id=\"ctl00_ContentBody_BugDetails_BugTBNum\" String=\"[^\"]*\">Use[^<]*<strong>(TB[0-9A-Z]+)[^<]*</strong> to reference this item.[^<]*</span>"); - public final static Pattern PATTERN_TRACKABLE_NAME = Pattern.compile("<h2>(?:[^<]*<img[^>]*>)?[^<]*<span id=\"ctl00_ContentBody_lbHeading\">([^<]+)</span>[^<]*</h2>"); + public final static Pattern PATTERN_TRACKABLE_NAME = Pattern.compile("<h2[^>]*>(?:[^<]*<img[^>]*>)?[^<]*<span id=\"ctl00_ContentBody_lbHeading\">([^<]+)</span>[^<]*</h2>"); /** Two groups ! */ public final static Pattern PATTERN_TRACKABLE_OWNER = Pattern.compile("<dt>\\W*Owner:[^<]*</dt>[^<]*<dd>[^<]*<a id=\"ctl00_ContentBody_BugDetails_BugOwner\" title=\"[^\"]*\" href=\"[^\"]*/profile/\\?guid=([a-z0-9\\-]+)\">([^<]+)<\\/a>[^<]*</dd>"); public final static Pattern PATTERN_TRACKABLE_RELEASES = Pattern.compile("<dt>\\W*Released:[^<]*</dt>[^<]*<dd>[^<]*<span id=\"ctl00_ContentBody_BugDetails_BugReleaseDate\">([^<]+)<\\/span>[^<]*</dd>"); |
