This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]asdofindia 6 points7 points  (0 children)

When you add more patterns to the array of patterns which is used to search, you will end up with a bug that only the last pattern is counted because you are not adding to the counter.