commit | 33e3aa1b74d1786949748521fad9d9d1e2edd6db | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Thu Nov 09 16:19:38 2017 +0100 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Thu Nov 09 16:19:38 2017 +0100 |
tree | 95b8a4bdfd02ef21847c350390fb83cd3984e94e | |
parent | 2c79c5e508711dc62f2e3db95bb7a2a1538957c3 [diff] |
w2v-server: treat <s> and <num> as garbage
diff --git a/w2v-server.pl b/w2v-server.pl index 402a0d5..58a93f6 100755 --- a/w2v-server.pl +++ b/w2v-server.pl
@@ -366,7 +366,8 @@ while((c = *w++) && !garbage[i]) { if( ((c <= 90 && c >= 65) && (previous >= 97 && previous <= 122)) || (previous == '-' && (c & 32)) || - (previous == 0xc2 && (c == 0xa4 || c == 0xb6 )) + (previous == 0xc2 && (c == 0xa4 || c == 0xb6 )) || + c == '<' ) { garbage[i]=1; continue;