index.js
function (match) {
    var type

    if (match[4]) {
      type = 'self-closing'
    } else if (match[6]) {
      type = 'closed'
    } else {
      type = 'single'
    }

    return new Shortcode({
      tag: match[2],
      attrs: match[3],
      type: type,
      content: match[5]
    })
  }
function (match) {
    var type

    if (match[4]) {
      type = 'self-closing'
    } else if (match[6]) {
      type = 'closed'
    } else {
      type = 'single'
    }

    return new Shortcode({
      tag: match[2],
      attrs: match[3],
      type: type,
      content: match[5]
    })
  }
function ( match ) { var type if ( match [ 4 ] ) { type = 'self-closing' } else if ( match [ 6 ] ) { type = 'closed' } else { type = 'single' } return new Shortcode ( { tag : match [ 2 ] , attrs : match [ 3 ] , type : type , content : match [ 5 ] } ) }
Generate a Shortcode Object from a RegExp match

Accepts a `match` object from calling `regexp.exec()` on a `RegExp`
generated by `wp.shortcode.regexp()`. `match` can also be set to the
`arguments` from a callback passed to `regexp.replace()`.

@param match
@return {Shortcode}
Generate a Shortcode Object from a RegExp match