aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/files/GPXParser.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-08-04 19:44:13 +0200
committerSamuel Tardieu <sam@rfc1149.net>2014-08-04 19:44:13 +0200
commitb56c2a5a1c1f793d4953d35c9def32ceb768a880 (patch)
treeb232ccc38333dee0396fe3a6bbf299cc3c12164c /main/src/cgeo/geocaching/files/GPXParser.java
parent0ca6fd5d478eab76b20d813638c6bec3539b7f1d (diff)
downloadcgeo-b56c2a5a1c1f793d4953d35c9def32ceb768a880.zip
cgeo-b56c2a5a1c1f793d4953d35c9def32ceb768a880.tar.gz
cgeo-b56c2a5a1c1f793d4953d35c9def32ceb768a880.tar.bz2
fix #4114: replace strings with patterns in parsers
Some strings are really meant to be used as regular strings and not as regular expressions.
Diffstat (limited to 'main/src/cgeo/geocaching/files/GPXParser.java')
-rw-r--r--main/src/cgeo/geocaching/files/GPXParser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/files/GPXParser.java b/main/src/cgeo/geocaching/files/GPXParser.java
index 89ee887..370b8aa 100644
--- a/main/src/cgeo/geocaching/files/GPXParser.java
+++ b/main/src/cgeo/geocaching/files/GPXParser.java
@@ -454,7 +454,7 @@ public abstract class GPXParser extends FileParser {
@Override
public void end(String body) {
- final String[] content = body.split("\\|");
+ final String[] content = StringUtils.split(body, '|');
if (content.length > 0) {
type = content[0].toLowerCase(Locale.US).trim();
}