kopia lustrzana https://github.com/cloudflare/wildebeest
fix lint
rodzic
b843eb8a62
commit
33f6e30966
|
@ -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) => {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue