[vlc-devel] [PATCH 1/2] vlsub: fixing regex to open files on root folder or without name (ie. http).

Rafael Waldo Delgado Doblas lord.rafa at gmail.com
Sun Nov 15 21:56:15 CET 2015


---
 share/lua/extensions/VLSub.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/lua/extensions/VLSub.lua b/share/lua/extensions/VLSub.lua
index 33bdfea..1eefa59 100644
--- a/share/lua/extensions/VLSub.lua
+++ b/share/lua/extensions/VLSub.lua
@@ -1402,7 +1402,7 @@ openSub = {
         file.path = vlc.strings.decode_uri(file.path)
         file.dir, file.completeName = string.match(
           file.path,
-          '^(.+/)([^/]*)$')
+          '^(.*/)([^/]*)$')
         
         local file_stat = vlc.net.stat(file.path)
         if file_stat 
-- 
2.1.4



More information about the vlc-devel mailing list