Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) fixed bug where dots were added after numbers < 1000: "123" was transformed to "123." which is undesirable
low012a4010f7dc80c
diff --git a/source/de/anomic/plasma/plasmaGrafics.java b/source/de/anomic/plasma/plasmaGrafics.javaindex 5693ff05e..2be362aae 100644--- a/source/de/anomic/plasma/plasmaGrafics.java+++ b/source/de/anomic/plasma/plasmaGrafics.java@@ -425,16 +425,18 @@ public class plasmaGrafics {private static String addDots(String word) {String tmp = "";int len = word.length();- while(len > 3) {- if(tmp.equals("")) {- tmp = word.substring(len-3,len);- } else {- tmp = word.substring(len-3,len) + "." + tmp;+ if (len > 3) {+ while(len > 3) {+ if(tmp.equals("")) {+ tmp = word.substring(len-3,len);+ } else {+ tmp = word.substring(len-3,len) + "." + tmp;+ }+ word = word.substring(0,len-3);+ len = word.length();}- word = word.substring(0,len-3);- len = word.length();+ word = word + "." + tmp;}- word = word + "." + tmp;return word;}