diff options
| author | Bananeweizen <Bananeweizen@gmx.de> | 2012-10-02 18:18:26 +0200 |
|---|---|---|
| committer | Bananeweizen <Bananeweizen@gmx.de> | 2012-10-02 18:18:26 +0200 |
| commit | 607bf47b7714bc259718b0db8c306086d078d55f (patch) | |
| tree | 358aaf5d8e2f0607bb3a0d843d26a4532b09ee28 /main/src | |
| parent | 1f8a42c0b5d4897e23f4b523cb73fa95545a4b19 (diff) | |
| download | cgeo-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.java | 2 |
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 |
