mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
*) fixed bug where dots were added after numbers < 1000: "123" was transformed to "123." which is undesirable
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4206 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
da73cde86e
commit
a4010f7dc8
|
@ -425,6 +425,7 @@ public class plasmaGrafics {
|
||||||
private static String addDots(String word) {
|
private static String addDots(String word) {
|
||||||
String tmp = "";
|
String tmp = "";
|
||||||
int len = word.length();
|
int len = word.length();
|
||||||
|
if (len > 3) {
|
||||||
while(len > 3) {
|
while(len > 3) {
|
||||||
if(tmp.equals("")) {
|
if(tmp.equals("")) {
|
||||||
tmp = word.substring(len-3,len);
|
tmp = word.substring(len-3,len);
|
||||||
|
@ -435,6 +436,7 @@ public class plasmaGrafics {
|
||||||
len = word.length();
|
len = word.length();
|
||||||
}
|
}
|
||||||
word = word + "." + tmp;
|
word = word + "." + tmp;
|
||||||
|
}
|
||||||
return word;
|
return word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user