# HG changeset patch # User Matthew Wild # Date 1291123355 0 # Node ID 4d6a976c3bb7bdb3cd45befb53eb62a17a102628 # Parent 44f2945d09cfdbfdfa55419b4d0ffbacdfaaf115 squish.lua: AutoFetch file paths can now begin with / or . too diff -r 44f2945d09cf -r 4d6a976c3bb7 squish.lua --- a/squish.lua Tue Nov 30 13:18:47 2010 +0000 +++ b/squish.lua Tue Nov 30 13:22:35 2010 +0000 @@ -229,7 +229,7 @@ print_debug("Fetching: ".. url) if url:match("^https?://") then data, err = fetch.http(url); - elseif url:match("^file://") then + elseif url:match("^file://") or url:match("^[/%.]") then local dataf, dataerr = io.open((url:gsub("^file://", ""))); if dataf then data, err = dataf:read("*a");