[vlc-devel] [vlc-commits] cue.lua: simplify pattern matching
Pierre Ynard
linkfanel at yahoo.fr
Sun Jan 8 00:50:49 CET 2012
> On Sat, Jan 07, 2012 at 01:36:33PM +0100, Pierre Ynard wrote :
> > + 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]+" )
>
> How is this still matching \n only files ?
[\r\n]+ means one or more characters that are either \r or \n. So it
works.
--
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."
More information about the vlc-devel
mailing list