requires-regex
Advanced tools
Comparing version 1.0.0 to 1.0.1
'use strict'; | ||
module.exports = function() { | ||
return /(?:(['"])[^\1]*require[^\1]*\1)|\s*(?:(?:var|const|let)?\s*([\s\S]+?)\s*=\s*)?require\((['"])((?:@([^/]+?)\/)?([^/]+?)|[\s\S]+?)\3\);?/g; | ||
return /(?:(['"])\s*[_.\w/$]*?\s*require\s*[^\1]*?\s*\1)|\s*(?:(?:var|const|let)?\s*([_.\w/$]+?)\s*=\s*)?require\((['"])((?:@([^/]+?)\/)?([^/]+?)|[-.@\w/$]+?)\3\);?/g; | ||
}; |
{ | ||
"name": "requires-regex", | ||
"description": "Regular expression for matching javascript require statements.", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"homepage": "https://github.com/jonschlinkert/requires-regex", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7692