mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 23:12:30 +02:00
fix: resolve blocker PR validation regressions
This commit is contained in:
parent
1d0aa5ac2a
commit
00bc7f30be
3 changed files with 4 additions and 4 deletions
|
|
@ -135,7 +135,7 @@ function getProjectName() {
|
|||
function sanitizeSessionId(raw) {
|
||||
if (!raw || typeof raw !== 'string') return null;
|
||||
|
||||
const hasNonAscii = /[^\x00-\x7F]/.test(raw);
|
||||
const hasNonAscii = Array.from(raw).some(char => char.codePointAt(0) > 0x7f);
|
||||
const normalized = raw.replace(/^\.+/, '');
|
||||
const sanitized = normalized
|
||||
.replace(/[^a-zA-Z0-9_-]/g, '-')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue