Skip to content

Commit

Permalink
forget to include 0-9
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Mar 14, 2014
1 parent e0451e8 commit b253476
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions serve/swt.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ int uri_swt_detect_words(const void* context, const void* parsed, ebb_buf* buf)
for (j = 0; j < wordlen; j++)
if (!((word[j] >= 'a' && word[j] <= 'z') ||
(word[j] >= 'A' && word[j] <= 'Z') ||
(word[j] >= '0' && word[j] <= '9') ||
word[j] == ' ' ||
word[j] == '-')) // replace unsupported char to whitespace
word[j] = ' ';
Expand Down

0 comments on commit b253476

Please sign in to comment.