X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ftermlists.c;h=0435f2aae1082d5a73e887f7697a520687d5cad3;hb=aabc654ef7b6c5a6740e95b9580223726a86e43a;hp=19517d7778d2a0aa432d869d41208e837f7ab93e;hpb=84cf2dcc12c5f978d0563bce2e9c85e9ff3c5956;p=pazpar2-moved-to-github.git diff --git a/src/termlists.c b/src/termlists.c index 19517d7..0435f2a 100644 --- a/src/termlists.c +++ b/src/termlists.c @@ -1,5 +1,5 @@ /* - * $Id: termlists.c,v 1.5 2007-01-15 19:01:15 quinn Exp $ + * $Id: termlists.c,v 1.6 2007-01-16 23:42:10 quinn Exp $ */ #include @@ -131,7 +131,7 @@ void termlist_insert(struct termlist *tl, const char *term) return; strcpy(buf, term); for (cp = buf + strlen(buf) - 1; cp > buf && - (*cp == ',' || *cp == '.' || *cp == ' '); cp--) + (*cp == ',' || *cp == '.' || *cp == ' ' || *cp == '-'); cp--) *cp = '\0'; bucket = hash((unsigned char *)buf) & tl->hashmask;