aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorBananeweizen <Bananeweizen@gmx.de>2012-10-02 18:18:26 +0200
committerBananeweizen <Bananeweizen@gmx.de>2012-10-02 18:18:26 +0200
commit607bf47b7714bc259718b0db8c306086d078d55f (patch)
tree358aaf5d8e2f0607bb3a0d843d26a4532b09ee28 /main/src
parent1f8a42c0b5d4897e23f4b523cb73fa95545a4b19 (diff)
downloadcgeo-607bf47b7714bc259718b0db8c306086d078d55f.zip
cgeo-607bf47b7714bc259718b0db8c306086d078d55f.tar.gz
cgeo-607bf47b7714bc259718b0db8c306086d078d55f.tar.bz2
#2034: additional unit test
* replace control character by space instead of empty string
Diffstat (limited to 'main/src')
-rw-r--r--main/src/cgeo/geocaching/utils/BaseUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/utils/BaseUtils.java b/main/src/cgeo/geocaching/utils/BaseUtils.java
index 2f34e4e..82e48cb 100644
--- a/main/src/cgeo/geocaching/utils/BaseUtils.java
+++ b/main/src/cgeo/geocaching/utils/BaseUtils.java
@@ -41,7 +41,7 @@ public final class BaseUtils {
}
if (null != result) {
Matcher remover = PATTERN_REMOVE_NONPRINTABLE.matcher(result);
- result = remover.replaceAll("");
+ result = remover.replaceAll(" ");
return trim ? new String(result).trim() : new String(result);
// Java copies the whole page String, when matching with regular expressions