Mercurial Hosting > luan
diff http/src/luan/modules/http/Http.luan @ 629:35dde32c02ab 0.15
change String.matches()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 18 Jan 2016 23:07:52 -0700 |
parents | 53a50c70c5e2 |
children | ca169567ce07 |
line wrap: on
line diff
--- a/http/src/luan/modules/http/Http.luan Mon Jan 18 06:42:50 2016 -0700 +++ b/http/src/luan/modules/http/Http.luan Mon Jan 18 23:07:52 2016 -0700 @@ -158,7 +158,7 @@ function M.uncache_site() for k in pairs(Table.copy(Package.loaded)) do - if matches(k,"site:.*") then + if matches(k,"^site:") then Package.loaded[k] = nil end end