requires-regex
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -8,3 +8,3 @@ 'use strict'; | ||
module.exports = function () { | ||
return /(?:(?:var|const)\s*([\w$]+)\s*=\s*)?require\(['"](.*?)['"]\);?/; | ||
return /(?:(?:var|const)\s*(.*?)\s*=\s*)?require\(['"]([^'"]+)['"](?:, ['"]([^'"]+)['"])?\);?/; | ||
}; |
{ | ||
"name": "requires-regex", | ||
"description": "Regular expression for matching javascript require statements.", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"homepage": "https://github.com/jonschlinkert/requires-regex", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
@@ -64,2 +64,2 @@ # requires-regex [![NPM version](https://img.shields.io/npm/v/requires-regex.svg)](https://www.npmjs.com/package/requires-regex) [![Build Status](https://img.shields.io/travis/jonschlinkert/requires-regex.svg)](https://travis-ci.org/jonschlinkert/requires-regex) | ||
_This file was generated by [verb](https://github.com/verbose/verb) on January 07, 2016._ | ||
_This file was generated by [verb](https://github.com/verbose/verb) on January 08, 2016._ |
4824