improved scoring ui + removed test data filters
Some checks failed
PHPUnit / test (push) Has been cancelled
Some checks failed
PHPUnit / test (push) Has been cancelled
This commit is contained in:
@ -1,21 +1,3 @@
|
||||
/** Dev fixture prefixes (import script / dev_fixture.php). */
|
||||
export function isDevTestClientCode(code) {
|
||||
const c = String(code ?? '').trim();
|
||||
return c.toUpperCase().startsWith('DEV-CL-');
|
||||
}
|
||||
|
||||
export function isDevTestUsername(username) {
|
||||
return String(username ?? '').trim().toLowerCase().startsWith('dev_');
|
||||
}
|
||||
|
||||
export function testDataRowClassForClient(clientCode) {
|
||||
return isDevTestClientCode(clientCode) ? ' row-test-data' : '';
|
||||
}
|
||||
|
||||
export function testDataRowClassForUser(username) {
|
||||
return isDevTestUsername(username) ? ' row-test-data' : '';
|
||||
}
|
||||
|
||||
const STABLE_KEY_RE = /^[a-zA-Z][a-zA-Z0-9_]*$/;
|
||||
|
||||
/** Local question id from full questionID (hash__q5 → q5). */
|
||||
|
||||
Reference in New Issue
Block a user