'use strict';

/**
 * Regular expression for matching require statements.
 *
 * @api public
 */

module.exports = function () {
  return /^[ \t]*(var[ \t]*([\w$]+)[ \t]*=[ \t]*)?require\(['"]([\w\W]+?)['"]\)/gm;
};
'use strict';

/**
 * Regular expression for matching require statements.
 *
 * @api public
 */

module.exports = function () {
  return /^[ \t]*((?:var|let|const)[ \t]*([\w$]+)[ \t]*=[ \t]*)?require\(['"]([\w\W]+?)['"]\)/gm;
};

add const/let support (#1)