lib/thematic.js
function(open, close) {
    this.fieldOpen = (typeof open === 'string' && open.length) ? open : '____';
    this.fieldClose = (typeof close === 'string' && close.length) ? close : this.fieldOpen;
    
    var fieldPattern = this.fieldOpen +'(.+?)'+ this.fieldClose;
    this.fieldRegex = new RegExp(fieldPattern);
    this.fieldRegexAll = new RegExp(fieldPattern, 'g');
  }
function(open, close) {
    this.fieldOpen = (typeof open === 'string' && open.length) ? open : '____';
    this.fieldClose = (typeof close === 'string' && close.length) ? close : this.fieldOpen;
    
    var fieldPattern = this.fieldOpen +'(.+?)'+ this.fieldClose;
    this.fieldRegex = new RegExp(fieldPattern);
    this.fieldRegexAll = new RegExp(fieldPattern, 'g');
  }
function ( open , close ) { this . fieldOpen = ( typeof open === 'string' && open . length ) ? open : '____' ; this . fieldClose = ( typeof close === 'string' && close . length ) ? close : this . fieldOpen ; var fieldPattern = this . fieldOpen + '(.+?)' + this . fieldClose ; this . fieldRegex = new RegExp ( fieldPattern ) ; this . fieldRegexAll = new RegExp ( fieldPattern , 'g' ) ; }
Configures the patterns used as template field literals.
@param {String} open token denoting start of field identifier.
@param {String} close token denoting end of field identifier.
Configures the patterns used as template field literals .