Board Thread:Code Review/@comment-28274335-20160422125014/@comment-24473195-20160423213626

It is definitely a problem with your regex. I'm not sure where you're planning to get the "data-user" attribute from. There isn't anything like that stored for a thread. Maybe it existed at the time you wrote the code and staff changed it.

return regex.test( $(this).attr('data-user') );

Anyway, as a general note. This code is very confusing and repetitive, you may want to use a function to store all those duplicate "code blocks" and use function calls as needed.