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

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