mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Fix the regex in Resolve.resolveFile, fixes #171
This commit is contained in:
@@ -77,7 +77,7 @@ export default class Resolver {
|
||||
|
||||
resolveFile(resource) {
|
||||
if (typeof resource === "string" || resource instanceof String) {
|
||||
if (/^http(s):\/\//.test(resource)) {
|
||||
if (/^https?:\/\//.test(resource)) {
|
||||
return new Promise((resolve, reject) => {
|
||||
request.get(resource).end((err, res) => {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user