mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
17 lines
208 B
JavaScript
17 lines
208 B
JavaScript
// OK
|
|
/\0/;
|
|
// NOT OK
|
|
/\1/;
|
|
// OK
|
|
/^(\s+)\w+\1$/;
|
|
// NOT OK
|
|
/^(?:\s+)\w+\1$/;
|
|
// OK
|
|
/[\1]/;
|
|
// OK
|
|
/^(?<ws>\s+)\w+\1$/;
|
|
/^(?<ws>\s+)\w+\k<ws>$/;
|
|
// NOT OK
|
|
/^(?<ws>\s+)\w+\2$/;
|
|
/^(?<ws>\s+)\w+\k<whitespace>$/;
|