mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix the regex in Resolve.resolveFile, fixes #171
This commit is contained in:
@@ -134,7 +134,7 @@ var Resolver = (function () {
|
||||
|
||||
Resolver.prototype.resolveFile = function resolveFile(resource) {
|
||||
if (typeof resource === "string" || resource instanceof String) {
|
||||
if (/^http(s):\/\//.test(resource)) {
|
||||
if (/^https?:\/\//.test(resource)) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
_superagent2["default"].get(resource).end(function (err, res) {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user