*) even better handling of searchwords in snippets, words can consist of letters and numbers now

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2732 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
low012 18 years ago
parent b062847797
commit 2cfd4633ac

@ -146,12 +146,12 @@ public class plasmaSnippetCache {
prefix = "";
postfix = "";
while((w[j].matches("\\A\\PL.+"))) {
while((w[j].matches("\\A[^\\p{L}\\p{N}].+"))) {
prefix = w[j].substring(0,1) + prefix;
w[j] = w[j].substring(1);
}
while((w[j].matches(".+\\PL\\Z"))) {
while((w[j].matches(".+[^\\p{L}\\p{N}]\\Z"))) {
len = w[j].length();
postfix = w[j].substring(len-1,len) + postfix;
w[j] = w[j].substring(0,len-1);

Loading…
Cancel
Save