Fix the regex in Resolve.resolveFile, fixes #171

This commit is contained in:
meew0
2016-01-30 14:36:31 +01:00
parent 3306067d7b
commit c1171e6973
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {