[vlc-commits] vlsub: fixing regex to open files on root folder or without name (ie. http ).
Rafael Waldo Delgado Doblas
git at videolan.org
Tue Dec 1 14:09:37 CET 2015
vlc/vlc-2.2 | branch: master | Rafael Waldo Delgado Doblas <lord.rafa at gmail.com> | Sun Nov 15 20:56:15 2015 +0000| [26a97159739b76f10a161df9f6a20af1f0887d28] | 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>
(cherry picked from commit 572937058d0fef09880ac2d7f90e5e1628da91bd)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=26a97159739b76f10a161df9f6a20af1f0887d28
---
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 62de54a..ecac003 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