var main = require('./main');
var extend = require('extend');
var defaultOptions =  {
	definitions: false,
  quotes: '"'
};

module.exports = function (data, options) {
  var regexOptions = options.parserConfig.regex || {};

  var finalOptions = extend(options, regexOptions);
	var migrated = main(data.toString(), finalOptions);
  return migrated;
}


@@ -162,16 +162,96 @@
 ions) %7B%0A
+  options = options %7C%7C %7B%7D;%0A  options.parserConfig = options.parserConfig %7C%7C %7B%7D;%0A
   var re

Fix options argument in regex parser