mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
19 lines
369 B
JavaScript
19 lines
369 B
JavaScript
var regexp = /a*b/;
|
|
|
|
module.exports = function (name) {
|
|
regexp.test(name); // NOT OK
|
|
};
|
|
|
|
function bar(reg, name) {
|
|
/f*g/.test(name); // NOT OK
|
|
}
|
|
|
|
if (typeof define !== 'undefined' && define.amd) { // AMD
|
|
define([], function () {return bar});
|
|
}
|
|
|
|
module.exports.closure = require("./closure")
|
|
|
|
module.exports.func = function (conf) {
|
|
return require("./indirect")
|
|
} |