nl_tokens: Produce a title from a filename for metadata .
pl_tokens: function metaTitleFromFileName ( <mask> ) { if ( filename . substr ( - 1 ) === '/' ) { filename = filename . substr ( 0 , filename . length - 1 ) ; } return decodeURIComponent ( filename ) ; }