Commit a690ab37 authored by Pierre Ynard's avatar Pierre Ynard

cue.lua: simplify pattern matching

parent a4ad1192
......@@ -25,12 +25,9 @@ function probe()
return false
end
header = vlc.peek( 2048 )
return string.match( header, "FILE.*WAVE%s[\r\n]+" ) or
string.match( header, "FILE.*AIFF%s[\r\n]+" ) or
string.match( header, "FILE.*MP3%s[\r\n]+" ) or
string.match( header, "FILE.*WAVE%s*[\n]+" ) or
string.match( header, "FILE.*AIFF%s*[\n]+" ) or
string.match( header, "FILE.*MP3%s*[\n]+" )
return string.match( header, "FILE.*WAVE%s*[\r\n]+" ) or
string.match( header, "FILE.*AIFF%s*[\r\n]+" ) or
string.match( header, "FILE.*MP3%s*[\r\n]+" )
end
-- Helpers
......
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