Skip to content
Snippets Groups Projects
Commit 371687ef authored by deuce's avatar deuce
Browse files

Remove repeated words.

parent fe71f24d
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@ Bot_Commands["DIS"].command = function (target, onick, ouh, srv, lbl, cmd) {
}
}
return out.replace(/\s{3,}/,' ');
return out.replace(/\s{3,}/g,' ').replace(/(\b(.*?)\s)\s*?\2\s+/g,'$1');;
}
function get_posts_by(name, subs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment