changeset 1286:9eb3a9724853

uri bug fixes
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 26 Dec 2018 16:58:53 -0700
parents fad40fe3282d
children d9b86675be24
files src/luan/modules/Boot.luan
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/Boot.luan	Wed Dec 26 14:11:08 2018 -0700
+++ b/src/luan/modules/Boot.luan	Wed Dec 26 16:58:53 2018 -0700
@@ -169,9 +169,9 @@
 
 
 local function uri(name,options)
-	local scheme, location = match( name, "^([^:]+):(.*)$" )
+	local scheme, location = match( name, "(?s)^([^:]+):(.*)$" )
 	scheme or error( "invalid Io.uri name '"..name.."', missing scheme" )
-	local opener = schemes[scheme] or error( "invalid scheme '"..scheme.."' in '"+name+"'" )
+	local opener = schemes[scheme] or error( "invalid scheme '"..scheme.."' in '"..name.."'" )
 	return opener(location,options)
 end
 Boot.uri = uri