index.js
function Delimiters (delims, options) {
  this.options = options || {};
  this.delims = delims || [];

  this.defaults = merge({}, {
    beginning: '^',           // '^' Matches beginning of input.
    matter: '([\\s\\S]+?)',   // The "content" between the delims
    body: '([\\s\\S]+|\\s?)', // The "content" after the delims
    end: '$',                 // '$' Matches end of input.
    flags: ''                 // RegExp flags: g, m, i
  }, options);
}
function Delimiters (delims, options) {
  this.options = options || {};
  this.delims = delims || [];

  this.defaults = merge({}, {
    beginning: '^',           // '^' Matches beginning of input.
    matter: '([\\s\\S]+?)',   // The "content" between the delims
    body: '([\\s\\S]+|\\s?)', // The "content" after the delims
    end: '$',                 // '$' Matches end of input.
    flags: ''                 // RegExp flags: g, m, i
  }, options);
}
function Delimiters ( delims , options ) { this . options = options || { } ; this . delims = delims || [ ] ; this . defaults = merge ( { } , { beginning : '^' , // '^' Matches beginning of input. matter : '([\\s\\S]+?)' , // The "content" between the delims body : '([\\s\\S]+|\\s?)' , // The "content" after the delims end : '$' , // '$' Matches end of input. flags : '' // RegExp flags: g, m, i } , options ) ; }
Generate regular expressions for template delimiters.

@param  {Array} `delims`
@param  {Object} `options`
Generate regular expressions for template delimiters .