From 2bed8abb82dc9eb43e20180335785731cd62bfdb Mon Sep 17 00:00:00 2001 From: GottZ Date: Thu, 24 Aug 2017 19:12:26 +0200 Subject: [PATCH] changed w0bm regex --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f820b92..85e4443 100644 --- a/index.js +++ b/index.js @@ -81,7 +81,7 @@ process.nextTick(()=>irc.client.connect()); const handleChatCommands = require("./chatCommands")(irc, db); const shiftRegex = /^(\.?\w+:?)\s+(.+)/; -const w0bmregex = /(?:[^\/]|^|\/\/)w0bm\.com\/(?:(?:b\/)?\w+\/)?([^ '\/@`´]+\.(webm)|\d+)/i; +const w0bmregex = /(?:[^\/]|^|\/\/)w0bm\.com\/(?:\w+\/){0,2}([^ '\/@`´]+\.(webm)|\d+)/i; const capsmsg = [ "Captain capslock did not approve this!",