projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This is still totally non-functional.
[pazpar2-moved-to-github.git]
/
src
/
termlists.c
diff --git
a/src/termlists.c
b/src/termlists.c
index
19517d7
..
0435f2a
100644
(file)
--- 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 <stdlib.h>
*/
#include <stdlib.h>
@@
-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 &&
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;
*cp = '\0';
bucket = hash((unsigned char *)buf) & tl->hashmask;