Commit 4e7be0e6 authored by Cool Fire's avatar Cool Fire
Browse files

Fix linting errors

parent b6574bc2
Pipeline #2627 passed with stages
in 2 minutes and 32 seconds
......@@ -116,7 +116,7 @@ class Hackerthreads
if( res.get_fields( 'set-cookie' ).last =~ /^phpbb3_kjrto_sid=([0-9a-f]{32});/ )
sid = $1
else
raise Exception.new( "Could not get a phpbb session." )
raise StandardError.new( "Could not get a phpbb session." )
end
# Retreive pending posts page
......
......@@ -103,7 +103,7 @@ class Youtube
# Download video and transcode
def mp3( _nick, _user, _host, from, _msg, arguments, _con )
# Check for valid url
if( arguments =~ /\A#{URI::regexp(['http', 'https'])}\z/ )
if( arguments =~ /\A#{URI::DEFAULT_PARSER.make_regexp(['http', 'https'])}\z/ )
# Check for youtube url
if( arguments =~ /youtu(be\.com|\.be)/ )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment