aboutsummaryrefslogtreecommitdiff
path: root/http_server.go
diff options
context:
space:
mode:
Diffstat (limited to 'http_server.go')
-rw-r--r--http_server.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/http_server.go b/http_server.go
index 1926cfb..70dc7a8 100644
--- a/http_server.go
+++ b/http_server.go
@@ -72,10 +72,10 @@ func newHTTPServer(aww *Awwan, address string) (httpd *httpServer, err error) {
var memfsBaseOpts = &memfs.Options{
Root: aww.BaseDir,
Excludes: []string{
- `.*/\.git$`,
- `node_modules`,
- `vendor`,
- `.*\.(bz|bz2|gz|iso|jar|tar|xz|zip)`,
+ `^.*/\.git$`,
+ `^node_modules$`,
+ `^vendor$`,
+ `^.*\.(bz|bz2|gz|iso|jar|tar|xz|zip)$`,
},
TryDirect: true, // Only store the file structures in the memory.
}