Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
optional HTTPS support for external files & verison bump
  • Loading branch information
thegoleffect committed Oct 4, 2011
1 parent 68d650a commit 7749e31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/assetmanager.js
Expand Up @@ -96,7 +96,7 @@ module.exports = function assetManager (settings) {
group.files.splice(index, 1);
return;
}
if (file.match(/^http:\/\//) || file.match(/^https:\/\//)) {
if (file.match(/^https?:\/\//)) {
return;
}
fs.watchFile(group.path + file, function (old, newFile) {
Expand Down Expand Up @@ -259,7 +259,7 @@ module.exports = function assetManager (settings) {

this.getFile = function (file, path, groupName, callback) {
var isExternal = false;
if (file && (file.match(/^http:\/\//) || file.match(/^https:\/\//))) {
if (file && file.match(/^https?:\/\//)) {
isExternal = true;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name" : "connect-assetmanager",
"description" : "Middleware for Connect (node.js) for handling your static assets.",
"version" : "0.0.21",
"version" : "0.0.22",
"author" : "Mathias Pettersson <mape@mape.me>",
"engines" : ["node"],
"directories" : { "lib" : "./lib" },
Expand Down

0 comments on commit 7749e31

Please sign in to comment.