[vlc-commits] vlsub: fixing regex to open files on root folder or without name (ie. http ).

Rafael Waldo Delgado Doblas git at videolan.org
Thu Nov 26 18:08:35 CET 2015


vlc | branch: master | Rafael Waldo Delgado Doblas <lord.rafa at gmail.com> | Sun Nov 15 20:56:15 2015 +0000| [572937058d0fef09880ac2d7f90e5e1628da91bd] | committer: Jean-Baptiste Kempf

vlsub: fixing regex to open files on root folder or without name (ie. http).

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=572937058d0fef09880ac2d7f90e5e1628da91bd
---

 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 



More information about the vlc-commits mailing list