mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Merge branch 'main' into js/shared-dataflow-merge-main
This commit is contained in:
@@ -116,4 +116,15 @@ const server4 = http.createServer((req, res) => {
|
||||
});
|
||||
server.start();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
const serverMatchAll = http.createServer((req, res) => {
|
||||
let username = url.parse(req.url, true).query.username;
|
||||
let otherStr = username.matchAll(/.*/g)[0]; // BAD
|
||||
console.log(otherStr);
|
||||
});
|
||||
|
||||
const serverMatchAl2l = http.createServer((req, res) => {
|
||||
const result = url.parse(req.url, true).query.username.matchAll(/(\d+)/g); // BAD
|
||||
console.log("First captured group:", RegExp.$1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user