mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
15 lines
296 B
JavaScript
15 lines
296 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") |