udger-java
udger-java copied to clipboard
WordDetector cannot handle words starting with 2 underscores
We regularly find warning log messages like Index out of hashmap58 : __weibo__
in our logs.
This seems to be caused by the way the class WordDetector creates the index into the array. Shouldn't the word be stripped from all non-alpha characters to determine the index?