Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/nuclearace/CytubeBot
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearace committed Apr 9, 2015
2 parents 03bc889 + d5042ad commit 61b06f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ var utils = {
if (!title)
return []

title = ".*" + title + ".*"
RegExEsc = function(str) {
return String(str).replace(/[\\\[\].()|{}$+*?!:^,#<-]/g, '\\$&').replace(/\x08/g, '\\x08');
};

title = ".*" + RegExEsc(title) + ".*"
var returnUIDs = []
var reg = new RegExp(title, "ig")
for (var i = 0; i < bot.playlist.length; i++) {
Expand Down

0 comments on commit 61b06f5

Please sign in to comment.