diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-12-13 19:48:00 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-12-13 19:48:00 +0100 |
| commit | 50c28124a4cb064efe9556406c9e4a9d9c14e118 (patch) | |
| tree | ea51c29658c0ac92c6b31e024b3c699b0088a0ac /main/src/cgeo/geocaching/Geocache.java | |
| parent | dd9cc5f5a0673213444da7d3f23a786c20ee3e1e (diff) | |
| download | cgeo-50c28124a4cb064efe9556406c9e4a9d9c14e118.zip cgeo-50c28124a4cb064efe9556406c9e4a9d9c14e118.tar.gz cgeo-50c28124a4cb064efe9556406c9e4a9d9c14e118.tar.bz2 | |
calendar addon: recognize one more variation of the event time
Diffstat (limited to 'main/src/cgeo/geocaching/Geocache.java')
| -rw-r--r-- | main/src/cgeo/geocaching/Geocache.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java index 2da93bc..40d67fb 100644 --- a/main/src/cgeo/geocaching/Geocache.java +++ b/main/src/cgeo/geocaching/Geocache.java @@ -1713,7 +1713,7 @@ public class Geocache implements ICache, IWaypoint { patterns.add(Pattern.compile("\\b(\\d{1,2})\\:(\\d\\d)\\b")); if (StringUtils.isNotBlank(hourLocalized)) { // 17 - 20 o'clock - patterns.add(Pattern.compile("\\b(\\d{1,2})(?:\\.00)?" + "\\s*-\\s*" + "(?:\\d{1,2})(?:\\.00)?" + "\\s+" + Pattern.quote(hourLocalized), Pattern.CASE_INSENSITIVE)); + patterns.add(Pattern.compile("\\b(\\d{1,2})(?:\\.00)?" + "\\s*(?:-|[a-z]+)\\s*" + "(?:\\d{1,2})(?:\\.00)?" + "\\s+" + Pattern.quote(hourLocalized), Pattern.CASE_INSENSITIVE)); // 12 o'clock, 12.00 o'clock patterns.add(Pattern.compile("\\b(\\d{1,2})(?:\\.00)?\\s+" + Pattern.quote(hourLocalized), Pattern.CASE_INSENSITIVE)); } |
