Mercurial Hosting > luan
comparison src/luan/modules/Boot.luan @ 1286:9eb3a9724853
uri bug fixes
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 26 Dec 2018 16:58:53 -0700 |
parents | 503bde9a7c80 |
children | ca742d51b31f |
comparison
equal
deleted
inserted
replaced
1285:fad40fe3282d | 1286:9eb3a9724853 |
---|---|
167 | 167 |
168 Boot.schemes = schemes | 168 Boot.schemes = schemes |
169 | 169 |
170 | 170 |
171 local function uri(name,options) | 171 local function uri(name,options) |
172 local scheme, location = match( name, "^([^:]+):(.*)$" ) | 172 local scheme, location = match( name, "(?s)^([^:]+):(.*)$" ) |
173 scheme or error( "invalid Io.uri name '"..name.."', missing scheme" ) | 173 scheme or error( "invalid Io.uri name '"..name.."', missing scheme" ) |
174 local opener = schemes[scheme] or error( "invalid scheme '"..scheme.."' in '"+name+"'" ) | 174 local opener = schemes[scheme] or error( "invalid scheme '"..scheme.."' in '"..name.."'" ) |
175 return opener(location,options) | 175 return opener(location,options) |
176 end | 176 end |
177 Boot.uri = uri | 177 Boot.uri = uri |
178 | 178 |
179 | 179 |