Commit 57293705 authored by Rafael Waldo Delgado Doblas's avatar Rafael Waldo Delgado Doblas Committed by Jean-Baptiste Kempf

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

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9bac00d1
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment