pull/196/head
Sven Sauleau 2023-02-06 11:37:25 +00:00
rodzic b843eb8a62
commit 33f6e30966
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -19,7 +19,7 @@ export function enrichStatus(status: string): string {
let state = 'normal'
let buffer = ''
for (let i = 0, len = status.length; true; i++) {
for (let i = 0; true; i++) {
const char = status[i]
const eof = char === undefined
const write = (s: string) => {

Wyświetl plik

@ -15,7 +15,7 @@ export function parseHandle(query: string): Handle {
const parts = query.split('@')
const localPart = parts[0]
if (!/^[\w-\.]+$/.test(localPart)) {
if (!/^[\w-.]+$/.test(localPart)) {
throw new Error('invalid handle: localPart: ' + localPart)
}