nl_tokens: Split an Accept header into media types .
pl_tokens: function splitMediaTypes ( accept ) { var accepts = <mask> . split ( ',' ) ; for ( var i = 1 , j = 0 ; i < accepts . length ; i ++ ) { if ( quoteCount ( accepts [ j ] ) % 2 == 0 ) { accepts [ ++ j ] = accepts [ i ] ; } else { accepts [ j ] += ',' + accepts [ i ] ; } } // trim accepts accepts . length = j + 1 ; return accepts ; }