From 607bf47b7714bc259718b0db8c306086d078d55f Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Tue, 2 Oct 2012 18:18:26 +0200 Subject: #2034: additional unit test * replace control character by space instead of empty string --- main/src/cgeo/geocaching/utils/BaseUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src') 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 -- cgit v1.1